Using CheatSheets To Apply Best Practices

Minikube Cheatsheet

Minikube Cheatsheet

1.1 Minikube basic

Name Command
minikube lifecycle minikube delete, minikube start, minikube status, Link: minikube
Get minikube version minikube version, Link: all minikube releases
mac install minikube brew cask install minikube, brew cask reinstall minikube
Start minikube with different machine flavor minikube start --memory 5120 --cpus=4
Start minikube with a specific k8s version minikube start --kubernetes-version v1.11.0
Start minikube with more customizations minikube start –kubernetes-version v1.11.0 –feature-gates=AdvancedAuditing=true
SSH to minikube vm minikube ssh
Your local docker to use minikube dockerd eval $(minikube docker-env), Then no need for docker push
Minikube check latest version minikube update-check

1.2 Check status

Name Command
Get minikube version minikube version, Link: all minikube releases
Get cluster info kubectl cluster-info
Get service info minikube service <srv-name>
Get dashboard minikube dashboard
Get ip minikube ip
Get minikube log minikube logs
List addons minikube addons list

1.3 Minikube Folders

Name Command
Mount host OS’s folder to minikube VM minikube mount /host-mount-path:/vm-mount-path
Folder of k8s.io/minikube-hostpath provisioner /tmp/hostpath-provisioner, /tmp/hostpath_pv
Mount host OS’s folder to minikube VM minikube mount /host-mount-path:/vm-mount-path
Critical minikube folder /var/lib/localkube, /var/lib/docker, /data
Check minikube config in your host OS desktop ~/.minikube/machines/minikube/config.json
Minikube conf in local env ~/.minikube, ~/.kube

1.4 Minikube Advanced

Name Command
Install addon after creating minikube env minikube addons enable heapster, kubectl top node

1.5 More Resources




Leave a Reply

Your email address will not be published. Required fields are marked *