Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
README.org
cheatsheet-minikube-A4.pdf

README.org

1 Minikube CheatSheet

linkedin
github
slack


PRs Welcome

File me Issues or star this repo.

See more CheatSheets from Denny: #denny-cheatsheets

1.1 Minikube basic

NameCommand
minikube lifecycleminikube delete, minikube start, minikube status, Link: minikube
Get minikube versionminikube version, Link: all minikube releases
mac install minikubebrew cask install minikube, brew cask reinstall minikube
Start minikube with different machine flavorminikube start --memory 5120 --cpus=4
Start minikube with a specific k8s versionminikube start --kubernetes-version v1.11.0
Start minikube with more customizationsminikube start –kubernetes-version v1.11.0 –feature-gates=AdvancedAuditing=true
SSH to minikube vmminikube ssh, ssh -i ~/.minikube/machines/minikube/id_rsa docker@192.168.99.100
Your local docker to use minikube dockerdeval $(minikube docker-env), Then no need for docker push
Minikube check latest versionminikube update-check

1.2 Check status

NameCommand
Get minikube versionminikube version, Link: all minikube releases
Get cluster infokubectl cluster-info
Get service infominikube service <srv-name>
Get dashboardminikube dashboard
Get ipminikube ip
Get minikube logminikube logs
List addonsminikube addons list

1.3 Minikube Folders

NameCommand
Mount host OS’s folder to minikube VMminikube 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 VMminikube 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

NameCommand
Install addon after creating minikube envminikube addons enable heapster, kubectl top node

1.5 More Resources

License: Code is licensed under MIT License.

https://github.com/kubernetes/minikube/tree/master/docs

You can’t perform that action at this time.