New kind on the Block

Few months ago I wrote an article about replacing Minikube with MicroK8s, but now we have even better soluion, kind. Like dind allows running Docker inside Docker containers, kind allows running Kubernetes inside Docker containers. kind basically abstracts nodes as Docker containers and then runs Kubernetes inside.

After you install Golang, it is quite easy to install and setup kind:

GO111MODULE="on" go get
kind create cluster

After some 30 seconds your single node cluster will be ready for development and testing. But that's not all, kind allows much complex setup, for example three node cluster with one master and two workers. Let's first create declarative object:

kind: Cluster
- role: control-plane
- role: worker
- role: worker

Save it as cluster.yaml and run the following command:

kind create cluster --config cluster.yaml --name multinode

Yes, it is easy as that. If you are Golang developer, it is nice to know that kind also provides library to be used in Go. You can find more information watching this video.