kind is another Kubernetes SIGs project but is quite different compared to minikube. It moves the cluster into Docker containers. This leads to a significantly faster startup speed compared to spawning a VM.
kind is a tool (CLI) for running local Kubernetes clusters using Docker container nodes.
Let’s get started.
The following things should be available in the local system.
The following command should download and install the kind
binary.
GO111MODULE=”on” go get sigs.k8s.io/kind@v0.8.1
> kind version
kind v0.8.1 go1.14.2 darwin/amd64
Now, we should be able to use the kind
CLI to spin up a K8s cluster.
Usage of kind
:
Usage:
kind [command]Available Commands:
build Build one of [node-image]
completion Output shell completion code for the specified shell
create Creates one of [cluster]
delete Deletes one of [cluster]
export Exports one of [kubeconfig, logs]
get Gets one of [clusters, nodes, kubeconfig]
help Help about any command
load Loads images into nodes
version Prints the kind CLI version
In this article, we’ll be focusing predominantly on the create
, get
, and delete
commands.
To create a cluster, just execute.
**cmd: **kind create cluster
#programming #kind #kubernetes #containers #devops