Setting Up Your Environment for Developing Kubernetes Operators

45 minutes
  • 5 Learning Objectives

About this Hands-on Lab

Hey, Gurus! Welcome to the *Setting Up Your Environment for Developing Kubernetes Operators* hands-on lab. In this lab, we will install all the tools needed to start developing a Kubernetes operator in Go.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Install Docker and Log In to Docker Hub

In the command line:

  1. Install Docker.
  2. Create a group called docker and add your user to it.
  3. Enable the docker service.
  4. Start the docker service.
  5. Log in to Docker Hub from the command line.

Link to Docker Hub Sign-Up

Install Go

Install the Go programming language.

Install kubectl

In the command line:

  1. Install kubectl.
  2. Make the binary file executable.
  3. Move the binary file to a directory in your path.
Install kind and Create the Cluster

In the command line:

  1. Install kind.
  2. Make the binary file executable.
  3. Move the binary file to a directory in your path.
  4. Create the cluster operator-dev.
  5. Change the context so you can use the cluster you created.
Install Operator SDK and Enable OLM

In the command line:

  1. Install the Operator SDK.
  2. Make the binary file executable.
  3. Move the binary file to a directory in your path.
  4. Enable the Operator Lifecycle Manager.

Additional Resources

In this lab, we will first need to install Docker on our Linux machine, get it up and running, and then log in to Docker Hub. Quick note: If you haven't set up a free account at Docker Hub, please do so before starting the lab, using this link to Docker Hub Sign-Up. Next, we will need to install the Go programming language on which your operator will be built. Next, you will need to install kubectl so you can interact with our Kubernetes test cluster. Once you have that installed, you will then install kind, which is a Docker-based Kubernetes environment good for local Kubernetes development, and then create the operator-dev cluster. Once you have your dev cluster up, you will then need to install the Operator SDK and enable the Operator Lifecycle Manager.

Good luck, and let's get started with the lab!

What are Hands-on Labs

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?