KinD commands

19 commands in 4 groups: Install, Manage, Images & Logs, List & Inspect. Click or tap any command to copy it. Official documentation: kind.sigs.k8s.io.

Open in the interactive cheat sheet search, stars and every other section

Install

Install kind (Kubernetes IN Docker), a tool for running local Kubernetes clusters using Docker containers as nodes.
curl -Lo ./kind https://kind.sigs.k8s.io/dl/v0.33.0/kind-linux-amd64 && chmod +x ./kind && sudo mv ./kind /usr/local/bin/
Install kind binary on Linux amd64
brew install kind
Install kind via Homebrew
kind version
Print kind version

Manage

Create and delete kind clusters, configure multi-node topologies, and manage cluster lifecycle.
kind create cluster --config <kind.yaml>
Create cluster from config file (multi-node, HA)
kind create cluster --image <node-image>
Create cluster with a specific node image
kind create cluster --name <name>
Create a named kind cluster
kind create cluster --retain
Create cluster and retain nodes on failure for debugging
kind delete clusters <name1> <name2>
Delete multiple clusters
kind delete cluster --name <name>
Delete a named kind cluster

Images & Logs

Load container images into kind nodes and export cluster logs for debugging.
kind build node-image --image <tag>
Build a custom node image
kind export logs --name <name>
Export cluster logs to a local directory
kind export logs <dir> --name <name>
Export logs to a specific directory
kind load docker-image <image> --name <name>
Load a Docker image into a cluster
kind load image-archive <tar> --name <name>
Load an image from a tar archive
kind load docker-image <image> --name <name> --nodes <node1>,<node2>
Load image into specific nodes

List & Inspect

List clusters and retrieve kubeconfig for cluster access.
kind export kubeconfig --name <name>
Export kubeconfig and set current context
kind get clusters
List all kind clusters
kind get kubeconfig --name <name>
Get kubeconfig for a specific cluster
kind get nodes --name <name>
List nodes in a kind cluster