🎓 A1Learner
🔍
0 of 51 lessons completed

Kubernetes: Minikube vs kind

Minikube and kind are two tools that create a small Kubernetes cluster on your own machine. Minikube is the course default because it behaves most like a real cluster.

Two ways to run a cluster at home

Both tools give you a real cluster. Minikube runs one cluster with extra helpers built in. kind runs each cluster node as a Docker container.

minikube start --driver=docker --kubernetes-version=v1.37.1

Start a kind cluster

kind creates a cluster with one command. It is light and quick to start. The StorageClass line names the kind of disk, taught in lesson 32.

kind create cluster --name practice

Load a local image into minikube

A minikube cluster cannot see images on your machine by itself. Load the image into the cluster first.

minikube image load my-app:latest

Load a local image into kind

A kind cluster has the same problem. Load the image or the pod fails with ImagePullBackOff, a pull error taught in lesson 44.

kind load docker-image my-app:latest --name practice

Pick one and move on

Minikube is the default for this course. kind is the alternative when you want a second cluster or a quick test.

kubectl get nodes

Example

minikube status
kubectl get nodes
kind get clusters

Key points

  • Minikube: a tool that runs a small Kubernetes cluster on one machine.
  • kind: a tool that runs a Kubernetes cluster inside Docker containers.
  • Use minikube to learn the commands you will use on a real cluster.
  • Use kind to test a cluster quickly or to run several clusters at once.
  • Minikube defaults to containerd as its container runtime.
  • Use minikube image load to put a local image into a minikube cluster.
  • Use kind load docker-image to put a local image into a kind cluster.

In this example, minikube status shows the cluster parts are running. kubectl get nodes then lists the one minikube node and its version. kind get clusters lists the separate practice cluster. The two tools can live side by side on one machine.

Try it Yourself

Edit the code, then press Run.

Running is simulated · Rust Playground

Exercise

You built an image on your own machine and want to run it in a kind cluster. What must you do first?