Skip to content

labkube is lab to learn about kubernetes base concept by manipulating them

License

Notifications You must be signed in to change notification settings

zhuminyi/labkube

 
 

Repository files navigation

Kubernetes 101 lab

Prerequisite

  1. A laptop
  2. Internet access
  3. Access to a Kubernetes cluster. Of course a personal or a test a test cluster :) . It can be:
  4. Clone this repository: git clone git@github.com:clamoriniere/labkube.git

How to create a local cluster with kind

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.

Lab

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

how to contribute

Rebuild the container image use in this lab

export CONTAINER_REGISTRY=<your container registry>

docker build -t $CONTAINER_REGISTRY/labkube:v1 .

About

labkube is lab to learn about kubernetes base concept by manipulating them

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 74.9%
  • Dockerfile 25.1%