Kind setup
Local Kubernetes cluster with Kind
Download tools
Create a Kubernetes cluster with Kind
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
name: lab-cluster
nodes:
- role: control-plane
- role: worker
- role: worker
kind create cluster --config=config.yaml
Creating cluster "lab-cluster" ...
â Ensuring node image (kindest/node:v1.37.0) đŧī¸
â Preparing nodes đĻ đĻ đĻ
â Writing configuration đ
â Starting control-plane đšī¸
â Installing CNI đ
â Installing StorageClass đž
â Joining worker nodes đ
Set kubectl context to "kind-lab-cluster"
You can now use your cluster with:
kubectl cluster-info --context kind-lab-cluster
Have a question, bug, or feature request? Let us know! https://kind.sigs.k8s.io/#community đ
Check cluster status
kubectl get nodes
NAME STATUS ROLES AGE VERSION
lab-cluster-control-plane Ready control-plane 3m9s v1.37.0
lab-cluster-worker Ready <none> 2m56s v1.37.0
lab-cluster-worker2 Ready <none> 2m57s v1.37.0
Delete cluster
> kind get clusters
lab-cluster
kind delete cluster --name lab-cluster
Deleting cluster "lab-cluster" ...
Deleted nodes: ["lab-cluster-worker2" "lab-cluster-worker" "lab-cluster-control-plane"]