Minikube Cheat Sheet

Wise G
Wise G
Jul 13, 2017 · 3 min read
minikube get-k8s-versions
minikube.exe start --kubernetes-version="v1.7.0" --vm-driver="virtualbox" --show-libmachine-logs --alsologtostderr
kubectl version
kubectl cluster-info
kubectl cluster-info dump
minikube ip
minikube dashboard or if just want the url:minikube dashboard --url=true
kubectl proxy
http://localhost:8001/ui
kubectl get nodes
kubectl run hello-nginx --image=nginx --port=80
kubectl expose deployment hello-nginx --type=NodePort
minikube service --url=true hello-nginx
kubectl get nodes
kubectl get svc
NAME          CLUSTER-IP     EXTERNAL-IP   PORT(S)        AGE
hello-nginx 10.10.10.207 <nodes> 80:31019/TCP 24m
<node ip>:31019
kubectl scale --replicas=3 deployment/hello-nginx
kubectl get deployment
minikube: Running
localkube: Running
kubectl: Misconfigured: pointing to stale minikube-vm.
minikube update-context
%HOMEPATH%\.kube
%HOMEPATH%\.minikube
%HOMEPATH%\.minikube\disk.vmdk

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade