Kubernetes: Minikube on macOS and Windows
Minikube is a tool that runs a small Kubernetes cluster on your own machine. It is the simplest way to learn Kubernetes without a cloud account.
Start the cluster on macOS
One command starts a local cluster. The Docker driver runs it inside a container.
minikube start --driver=docker --kubernetes-version=v1.37.1Start the cluster on Windows
The same command starts the cluster on Windows. Docker Desktop must be running first.
minikube start --driver=docker --kubernetes-version=v1.37.1Check the node is ready
The get nodes command shows the new node. Its status must read Ready.
kubectl get nodesStop the cluster when done
The stop command halts the cluster. Your apps stay saved for the next start.
minikube stopExample
minikube start --driver=docker --kubernetes-version=v1.37.1
kubectl get nodesKey points
- Minikube: a tool that runs a one-node Kubernetes cluster on your own machine.
- Driver: the software minikube uses to run the cluster, such as Docker.
- Docker Desktop: the app that runs Docker on macOS and Windows.
- Prerequisite: Docker must already be installed before minikube starts.
- Use minikube start to create and start the local cluster.
- Use kubectl get nodes to check the cluster is ready.
In this example, the first command starts a local cluster with the Docker driver. The output confirms kubectl is now pointed at it. The second command lists the nodes. The output shows one node called minikube with the status Ready.
Note
These steps follow the official docs. They are docs-checked, as no Windows or Mac machine is available here.
Try it Yourself
Edit the code, then press Run.
Running is simulated · Rust Playground
Exercise
What must be installed before minikube can start with the Docker driver?