bookmark_borderKind

kind is a tool for running local Kubernetes clusters using Docker container “nodes”.
kind was primarily designed for testing Kubernetes itself, but may be used for local development or CI.

Installation:

Install Kind

curl -Lo ./kind https://kind.sigs.k8s.io/dl/v0.10.0/kind-linux-amd64
chmod +x ./kind
mv ./kind /some-dir-in-your-PATH/kind
brew install kind
choco install kind

Create a cluster

# Create two cluster
kind create cluster
kind create cluster --name kind-2

# Get Clusters
kind get clusters
kind
kind-2

# Delete a Cluster

kind delete cluster --name kind-2

Create Multi-node clusters

Multi-node clusters

# three node (two workers) cluster config
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
nodes:
- role: control-plane
- role: worker
- role: worker
kind create cluster --config three-node-cluster.yaml
# a cluster with 3 control-plane nodes and 3 workers
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
nodes:
- role: control-plane
- role: control-plane
- role: control-plane
- role: worker
- role: worker
- role: worker

More info: https://kind.sigs.k8s.io/

ANOTE.DEV