- A laptop
- Internet access
- Access to a Kubernetes cluster. Of course a personal or a test a test cluster :) .
It can be:
- kind
- minikube
- A manage solution like Google GKE....
- Clone this repository:
git clone git@github.com:clamoriniere/labkube.git
IMO the simple solution to create a local kubernete cluster is to use kind.
kind
installation is describe here
For the need of this lab, it can be interesting to create a multi nodes cluster. After followed the kind
installation process. To create a local multi nodes cluster, runs the following command
➜ kind create cluster --config config/cluster-kind.yaml --name labkube
Creating cluster "labkube" ...
...
You can now use your cluster with:
➜ kubectl cluster-info --context kind-labkube
It will spin up a 3 nodes cluster: 1 control plane + 2 worker nodes.
before starting the lab verify that your cluster is up-and-running and that you have access to it.
➜ kubectl get nodes
NAME STATUS ROLES AGE VERSION
labkube-control-plane Ready control-plane,master 5m28s v1.23.4
labkube-worker Ready <none> 5m6s v1.23.4
labkube-worker2 Ready <none> 4m54s v1.23.4
Go to the lab folder and follow the instructions
export CONTAINER_REGISTRY=<your container registry>
docker build -t $CONTAINER_REGISTRY/labkube:v1 .