Local Kubernetes, focused on application development & education
minikube.sigs.k8s.io, kubernetes/minikube
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.
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 nodeminikube status
to get the overall statusminikube pause
to pause itminikube stop
to stop it
Run minikube dashboard
to open the web dashboard.
Run kubectl config use-context minikube
to be able to use kubectl on your local Kubernetes instance.
Command | Action |
---|---|
minikube service hello-minikube |
Maunch a web browser on a service |
minikube service xxx --url |
Display url for a given service (xxx) |
minikube config set memory 16384 |
Update default memory limit (2048 by default) |
minikube addons list |
Browse the catalog of easily installed Kubernetes services |
minikube tunnel |
Start a tunnel to create a routable IP for a "balanced" deployment |
minikube start -p aged --kubernetes-version=v1.16.1 |
Create another cluster running an older Kubernetes release |
minikube ip |
Display Kubernetes IP |
Run minikube delete
and, if needed, delete the .kube
and .minikube
folder in your home directory.
# Enable metrics-server (https://github.com/kubernetes-sigs/metrics-server)
minikube addons enable metrics-server
kubectl get apiservices
- 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