Installing Kubernetes with Minikube
Set up Minikube on macOS, Linux, or Windows and learn the core commands for starting, inspecting, and stopping your local cluster.
What Is Minikube?
Minikube is a tool that runs a local Kubernetes cluster on your laptop or workstation. It is ideal for learning, experimenting, and trying manifests without paying for cloud infrastructure.
Think of Minikube like a personal practice gym for Kubernetes. You can learn the movements safely before stepping into a full production environment.
Before You Install
Minikube needs a virtualization or container driver such as Docker, HyperKit, Hyper-V, or VirtualBox depending on your operating system.
Install on macOS
brew install minikube
If you plan to use Docker as the driver:
brew install docker
Install on Linux
curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64
sudo install minikube-linux-amd64 /usr/local/bin/minikube
Install on Windows
You can install Minikube with Chocolatey or download the installer.
choco install minikube
Start a Cluster
The simplest startup command is:
minikube start
You can also customize the driver and resources:
minikube start --driver=docker --cpus=4 --memory=8192
Common Flags
| Flag | Meaning |
|---|---|
--driver | Selects the virtualization or container driver |
--cpus | Sets how many CPUs Minikube can use |
--memory | Sets RAM for the cluster |
Check Cluster Status
minikube status
Typical output shows whether the host, kubelet, and API Server are running.
Open the Dashboard
minikube dashboard
This opens the Kubernetes dashboard in your browser so you can inspect workloads visually.
Stop the Cluster
minikube stop
This stops the cluster but preserves its state so you can start it again later.
Useful Workflow
minikube start --driver=docker
kubectl get nodes
minikube dashboard
minikube stop
Why Minikube Is Good for Beginners
Minikube gives you a real Kubernetes API with a simple setup path. That means the YAML, kubectl commands, and concepts you learn here transfer well to larger clusters.
Common Beginner Mistakes
Starting Without Enough Resources
If Minikube feels slow, increase CPUs and memory.
Forgetting the Driver
If startup fails, explicitly choose a driver such as Docker.
Expecting Cloud Features Automatically
Minikube is local. Some production cloud behaviors, especially external load balancers, work differently.
Minikube Goal
What is the main purpose of Minikube?
Stopping vs Deleting
What does `minikube stop` do?