Kind-multi-node-worker2 Ready 21m v1.21.1 Kind-multi-node-control-plane Ready control-plane,master 22m v1.21.1 To check details about nodes run command kubectl get nodes. For example, to list all pods in all namespace run command: You can interact with the kind cluster using kubectl.
If the flag is not specified, kind will use the default cluster context name kind and delete that cluster. To delete a cluster, use the command kind delete cluster with optional -name flag. Kubectl cluster-info -context kind-kind-multi-node In order to interact with a specific cluster, you need to specify the cluster name as a context in kubectl as: To list cluster, run the command kind get clusters, which outputs:
To create a multi-node cluster save the below code in a YAML file, say kind-config.yaml, and run the command kind create cluster -config kind-config.yaml -name kind-multi-node For example, the following configuration creates a multi-node cluster – one control plane and two child nodes.
You can pass additional configurations to customize your cluster. You can use -name flag to create a cluster with a different context name. ✓ Ensuring node image (kindest/node:v1.21.1) ?īy default, it creates a cluster with the name kind. Ensuring node image (kindest/node:v1.21.1) ? ….Once you have Kind installed, you can create a Kubernetes cluster by running the below command: