Lightweight local Kubernetes clusters using Docker containers as nodes. The fastest way to spin up a multi-node K8s environment for learning, CI/CD, and CKA practice.
# Create default cluster (1 control-plane node)kind create cluster# Verifykubectl get nodeskubectl get pods -n kube-system # See system components in their default namespace
Expose cluster services to your host machine. This is essential for NodePort Services because Kind runs Kubernetes inside Docker containers — node ports are not automatically reachable from the host without explicit mapping.
With this config, a NodePort Service exposed on port 30001 inside the Kind node becomes accessible at localhost:30001 on your host. On cloud VMs, bare metal, or the CKA exam, NodePort works without extra configuration. Source: CKA Day 9
CKA Relevance
Kind provides a safe sandbox for:
Practicing kubectl commands and YAML manifests
Observing pod scheduling across multiple nodes
Testing control plane and networking behaviors
Reproducing cluster issues locally
Practical Practice
Exam-style hands-on tasks for this topic. Complete each task before reviewing the solution. Time yourself — CKA tasks average 5–7 minutes.
Task 1: Create a Multi-Node Kind Cluster
Create a multi-node Kind cluster with 1 control plane and 2 workers.
Requirements: Use a config file.
Verification:kubectl get nodesSolution:
Task 2: Verify and Run a Test Pod
Verify cluster nodes and run a test Pod.
Requirements: Deploy nginx and expose it.
Verification:kubectl get pods,svcSolution:
kubectl run nginx --image=nginxkubectl expose pod nginx --port=80 --type=NodePortkubectl get pods,svckubectl exec nginx -- curl -s localhost
Task 3: Export Kubeconfig
Export the Kind kubeconfig to a custom file and switch contexts.
Requirements: Do not overwrite your default ~/.kube/config unless intended.
Verification:kubectl config current-contextSolution:
kind get kubeconfig --name cka-cluster > ~/cka-cluster.kubeconfigexport KUBECONFIG=~/cka-cluster.kubeconfigkubectl config current-contextkubectl get nodes
Related Pages
Kubeadm Cluster Setup — The production-grade counterpart to Kind for real VM/bare-metal clusters