Run a local Kubernetes cluster on macOS, Linux and Windows
open sourceApache-2.0self-hostablefree
minikube runs a local Kubernetes cluster on macOS, Linux and Windows, aiming to be the best tool for local application development and to support every Kubernetes feature that fits on one machine. It starts the cluster through a driver of your choice: a container (Docker, or Podman experimentally) or a VM (KVM2, Hyper-V, VFkit, QEMU, VirtualBox, Parallels, VMware), or directly on the host. Nodes run containerd by default, or CRI-O or Docker. minikube tunnel gives LoadBalancer services an address, minikube service opens NodePorts, minikube dashboard starts the Kubernetes dashboard, and addons install extras such as ingress controllers, a registry and Istio. It's a Kubernetes SIG Cluster Lifecycle project under Apache-2.0.
Ways to install
Package managers
Problems it solves
- learn Kubernetes on my own laptop without paying for a cloud cluster
- a single-node Kubernetes cluster on my workstation for developing an app against
- test a LoadBalancer service locally and actually get an external IP for it
- run Kubernetes locally in a VM because I can't or won't install Docker
- try a Kubernetes feature or a specific Kubernetes version before it reaches our clusters
- get an image I just built into my local cluster without pushing it to a registry
- run several separate local clusters for different projects
- a local multi-node cluster to see how my pods spread across nodes
- install an ingress controller or service mesh on my dev cluster with one command
- open the Kubernetes dashboard for my local cluster without setting it up myself
- mount a folder from my laptop into pods running on my local cluster
- run GPU workloads on a local Kubernetes cluster for machine learning work
- a local cluster that works offline once the images are cached
- choose whether my local cluster's nodes use containerd, CRI-O or Docker
- run Kubernetes in CI jobs for integration tests of my manifests
Features
- latest stable Kubernetes by default, with a choice of version
- drivers: Docker, KVM2, VFkit, Hyper-V, QEMU, VirtualBox, Parallels, VMware, Podman and Krunkit (experimental), SSH and none
- containerd (default), CRI-O or Docker as the node runtime
- LoadBalancer access with minikube tunnel and NodePort access with minikube service
- several clusters as profiles (minikube start -p)
- multi-node clusters
- addons such as Ingress DNS, Kong Ingress, Traefik, Istio, Registry Aliases, Headlamp and YAKD
- minikube dashboard
- eight ways to get images into the cluster, including image load, cache and docker-env
- persistent volumes, filesystem mounts and file sync
View 3 more
- NVIDIA and AMD GPU support
- apiserver and kubelet options set by command-line flags
- offline use with cached images, and proxy and VPN support
Limitations
- Doesn't run on ARM-based Windows PCs: its Windows build is x86-64 only3
Capabilities
| Has a command line tool | plan not known |
|---|
Alternatives
The same job
These do what minikube does.
- kind Run local Kubernetes clusters using Docker container nodes
- k3d Little helper to run CNCF's k3s in Docker
- MicroK8s Zero-ops, pure-upstream, HA Kubernetes, from developer workstations to production
- OpenShift Local A minimal OpenShift Container Platform 4 cluster on your local computer
