Sub topic 2
What you need installed first
This chapter assumes you can use a terminal and know what a container image is. It also assumes you have admin rights on your machine to install software. You will install three command-line tools and one container runtime, then check that each one works.
The pieces and how they fit
A local cluster needs something that can run containers or virtual machines. kind and minikube do not provide that themselves. They use a runtime or driver you already have.
Required tools
| Tool | Role | Needed for |
|---|---|---|
| Container runtime | Runs the cluster nodes as containers | kind, and minikube's `docker` or `podman` driver |
| kubectl | Sends commands to the cluster API | Both |
| kind | Creates clusters from node containers | kind path |
| minikube | Creates a cluster through a driver | minikube path |
You only need one of kind or minikube to start. Installing both lets you compare them in the next chapters.
Container runtime and drivers
kind runs each Kubernetes node as a container. It needs a working container runtime. Docker is the default, and Podman is supported.
minikube is more flexible. It starts the cluster through a driver. The container drivers are docker and podman. The virtual machine drivers include kvm2, qemu, virtualbox, vmware and hyperv, depending on your operating system. Docker is the usual choice because kind and minikube can then share one runtime.
Give the runtime enough resources. minikube asks for at least 2 CPUs, 2 GB of memory and 20 GB of disk. On Docker Desktop, check the resource limits in its settings. Multi-node clusters need more.
Verify the installation
Run these commands. Each one should print a version or status without an error.
docker info
kubectl version --client
kind version
minikube versionIf you use Podman, set the provider for each tool instead of relying on the Docker default:
export KIND_EXPERIMENTAL_PROVIDER=podman
minikube config set driver podmanCommon errors
Cannot connect to the Docker daemon: the Docker service is not running. Start Docker Desktop or thedockerservice.permission deniedon/var/run/docker.sock(Linux): your user cannot reach the Docker socket. Add your user to thedockergroup, then log out and back in.- minikube reports that the driver is not healthy or not found: the driver is missing or stopped. Start it, or pick another with
minikube start --driver=<name>. kubectl: command not found: kubectl is not on yourPATH. Neither kind nor minikube installs it for you, although minikube can run its own copy withminikube kubectl --.
Exercise
You run kind create cluster and get "Cannot connect to the Docker daemon". Which tool is missing or stopped, and which command would confirm it?
Show answer
The container runtime is not running. kind creates its nodes as containers, so it needs a reachable runtime. Run docker info. If it fails with the same error, start Docker (or your configured runtime) and try again.