Minikube

Local Kubernetes, focused on application development & education

minikube.sigs.k8s.io, kubernetes/minikube

Quick start

Installation

Follow the instructions given in the Getting Started page.

More information on Installing Kubernetes with Minikube page.

Make sure Docker Desktop has allocated at least 3 Go of RAM.

Run/stop

Important: If you're on Windows, open a command window as admin.

Run:

  • (Optional) minikube config set vm-driver hyperv to set the default driver (here Hyper-V driver)

  • minikube start to start the Kubernetes node

  • minikube status to get the overall status

  • minikube pause to pause it

  • minikube stop to stop it

Dashboard

Run minikube dashboard to open the web dashboard.

Kubernetes CLI

Run kubectl config use-context minikube to be able to use kubectl on your local Kubernetes instance.

CLI reference

Documentation

Clean-up

Run minikube delete and, if needed, delete the .kube and .minikube folder in your home directory.

Extensions

# Enable metrics-server (https://github.com/kubernetes-sigs/metrics-server)
minikube addons enable metrics-server
kubectl get apiservices

Known issues

  • Incorrect date (can lead to errors with Docker pull)

minikube ssh -- date
minikube ssh
date --set "12 Aug 2020 17:20:00"
exit
minikube ssh -- docker run -i --rm --privileged --pid=host debian nsenter -t 1 -m -u -n -i date -u $(date -u +%m%d%H%M%Y)
minikube ssh -- date

Last updated