Last active
December 2, 2019 16:33
-
-
Save mikybars/dddded7bc17bfb240045504e922d21b3 to your computer and use it in GitHub Desktop.
Minikube CheatSheet
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Bootstrap | |
| $ minikube profile minikube | |
| $ minikube config set memory 6144 | |
| $ minikube config set cpus 2 | |
| $ minikube config set vm-driver hyperkit # MacOS | |
| $ minikube start | |
| # List profiles | |
| $ minikube profile list | |
| |----------|-----------|---------------|-----------|--------------------| | |
| | Profile | VM Driver | NodeIP | Node Port | Kubernetes Version | | |
| |----------|-----------|---------------|-----------|--------------------| | |
| | minikube | hyperkit | 192.168.64.21 | 8443 | v1.16.2 | | |
| |----------|-----------|---------------|-----------|--------------------| | |
| $ minikube status | |
| host: Running | |
| kubelet: Running | |
| apiserver: Running | |
| kubeconfig: Configured | |
| # Export Docker daemon | |
| $ eval $(minikube docker-env) | |
| $ docker image ls | |
| REPOSITORY TAG IMAGE ID CREATED SIZE | |
| k8s.gcr.io/kube-proxy v1.16.2 8454cbe08dc9 6 weeks ago 86.1MB | |
| k8s.gcr.io/kube-apiserver v1.16.2 c2c9a0406787 6 weeks ago 217MB | |
| k8s.gcr.io/kube-scheduler v1.16.2 ebac1ae204a2 6 weeks ago 87.3MB | |
| k8s.gcr.io/kube-controller-manager v1.16.2 6e4bffa46d70 6 weeks ago 163MB | |
| k8s.gcr.io/etcd 3.3.15-0 b2756210eeab 2 months ago 247MB | |
| ... | |
| # SSH | |
| $ minikube ssh | |
| $ minikube ssh date | |
| Mon Dec 2 17:31:41 CET 2019 | |
| $ scp -i $(minikube ssh-key) file_in_host docker@$(minikube ip):~ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment