kind or minikube: test the cluster, or test the app
kind is bare upstream Kubernetes for CI and CKA work; minikube is a developer environment of one-line addons. Both quietly install a default IngressClass once traffic has to come in.
ON THIS PAGE
Use kind when the cluster is what you are testing, and minikube when the application is. kind is upstream Kubernetes, built by kubeadm inside Docker containers with almost nothing on top, which makes it the cluster for CI and for CKA practice; minikube is one developer environment that turns ingress, a registry or metrics into a single command each, which makes it the easier place to learn and to work. The catch is that kind stays bare only until traffic has to come in. Its own ingress guide has you run cloud-provider-kind, which registers itself as the default IngressClass, the same quiet substitution K3s makes with Traefik.
This is part 2 of the Less than K8s series, after K3s or k3d and before k0s or MicroK8s.
Two different promises#
kind runs each Kubernetes node as a container and bootstraps it with kubeadm. It was designed primarily for testing Kubernetes itself, it is a CNCF-certified conformant installer, and its docs add only that it may also be used for local development or CI. Multi-node is a few lines of config. Extra workers on one laptop add no real capacity, but they give you genuine scheduling, cordoning and draining, and several control-plane nodes if you want to rehearse high availability. What kind adds on top of upstream is short: its own CNI, kindnetd, and a default StorageClass named standard, backed by a local-path provisioner. There is no ingress controller and no load balancer.
cat <<EOF > kind-lab.yaml
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
nodes:
- role: control-plane
- role: worker
- role: worker
EOF
kind create cluster --name lab --config kind-lab.yaml
printf 'FROM nginx:alpine\n' > Dockerfile # stand-in for your own app
docker build -t hello-app:dev .
kind load docker-image hello-app:dev --name labkind load docker-image copies the image into every node, so no registry is involved. The :dev tag matters: an image tagged :latest, or not tagged at all, defaults to an Always pull policy, and the node will go to the network for an image that only exists on your machine. Build the image rather than retagging one you pulled: on Docker's containerd image store, kind load docker-image rejected a retagged multi-platform image with "content digest … not found" when we ran this, while the local build loaded first time.
minikube describes itself as local Kubernetes focused on making it easy to learn and develop for Kubernetes, and everything about it follows from that. It runs the cluster in a container or a VM, and picks the Docker driver when Docker is running. It is built to be kept: minikube pause, stop and named profiles let one cluster live for weeks. Its storage provisioner and default StorageClass are on from the start, and that class is also called standard, so a manifest that names it works on both tools and on no cluster that lacks the name. minikube addons list shows the rest of the catalogue: ingress, registry, metrics-server, the dashboard and more. Multi-node exists through minikube start --nodes, with one caveat: the default hostpath provisioner does not support multi-node clusters, and the docs send you to the CSI hostpath driver addon instead.
One Ingress, three answers#
Run the same four commands against each cluster. kubectl create ingress without --class produces an Ingress with no ingressClassName, the sort that is easy to write by accident.
kubectl create deployment hello --image=hello-app:dev
kubectl expose deployment hello --port=80
kubectl create ingress hello --rule="/*=hello:80"
kubectl get ingress helloOn bare kind the Ingress is accepted and never gets an address. Nothing serves it and nothing reports an error, which is the honest answer: no controller exists. Now follow kind's ingress guide and start cloud-provider-kind, a binary that runs on your host rather than in the cluster.
brew install cloud-provider-kind
sudo cloud-provider-kind # macOS needs sudo; leave it running in its own terminal
kubectl get ingressclassAn IngressClass called cloud-provider-kind appears, annotated as the cluster default, and the hello Ingress gets an address. The controller behind it is a translation layer: it reads the Ingress spec, writes a Gateway and HTTPRoutes, and lets Envoy containers carry the traffic. It does not read controller annotations, so an Ingress carrying nginx.ingress.kubernetes.io/ annotations is routed as if they were not there. Remove the default-class annotation and cloud-provider-kind restores it; the off switch is --enable-default-ingress=false when you start it. On macOS the Ingress address belongs to Docker's VM and cannot be reached from your shell, so the tool maps a localhost port on a kindccm- container, which docker ps will show you.
On minikube the ingress addon gives the third answer.
minikube start
minikube image load hello-app:dev
minikube addons enable ingress
kubectl -n ingress-nginx wait --for=condition=ready pod \
-l app.kubernetes.io/component=controller --timeout=120s
kubectl get ingressclass
# now the four commands above, then:
minikube tunnel # its own terminal; then curl http://127.0.0.1/The wait is not optional. The addon returns before its admission webhook is listening, and an Ingress created in that gap is rejected with "connection refused"; ours was, on the first run. The addon installs ingress-nginx and registers its nginx class as the default, so the class-less Ingress is claimed again, this time by a controller that does honour nginx.ingress.kubernetes.io/ annotations. That is the controller the Kubernetes project has retired. If production has moved to a Gateway API implementation or another controller, minikube's convenience is now an approximation of a cluster you no longer run.
Same manifest, three behaviours: silence, Envoy ignoring your annotations, and ingress-nginx honouring them. The fix is the one part 1 reached: set ingressClassName on every Ingress, and install the controller production runs into whichever local cluster you choose. On kind that means starting cloud-provider-kind with --enable-default-ingress=false, or not at all; on minikube it means leaving the ingress addon off.
The diagram#
The same Ingress and its three answers, side by side. Open it in archhy and make a copy to mark up your own setup.
Which one for which job#
CI: kind. It was built to test Kubernetes in CI, and a pipeline is the same job at a smaller scale. A multi-node cluster comes from a file in the repository, images go in with kind load docker-image rather than through a registry, and deleting the cluster is the cleanup. Most pipeline tests can reach the application from inside the cluster or through kubectl port-forward, which means no host process, no sudo and no default IngressClass appearing behind your back. If the pipeline must test ingress, install production's controller and set the class.
CKA work: kind. Its nodes are built by kubeadm, the same bootstrapper you meet in CKA preparation, so the control plane runs as static pods you can inspect, break and repair, and adding a node is editing a file. CKAD and general learning: minikube. The application-level syllabus gains nothing from kubeadm internals, and minikube's dashboard, minikube service and one-line addons such as metrics-server, which a HorizontalPodAutoscaler needs before it can do anything, keep a learner on the objects they are trying to learn.
Day-to-day application development: minikube, with discipline. One long-lived cluster that pauses and stops between sessions and builds images in place with minikube image build is a better daily loop than a cluster you recreate. Enable addons only where production has an equivalent, and treat each one as a stand-in for something production does differently.
The verdict inverts when the behaviour you need to see depends on more than one node: pod anti-affinity, topology spread, a PodDisruptionBudget holding up a drain. minikube can start several nodes, but its default storage stops working when you do, and the replacement addon is one more thing production does not run. kind gives you three nodes from a file and storage that keeps working, though like K3s's local-path it pins each volume to the node where its pod was first scheduled. A local cluster earns its place by failing the way production fails, and for anything that spans nodes, that is kind.
