Minikube
Minikube tips and tricks.
Install minikube
You need to have VirtualBox installed in your computer.
Install kubectl
sudo apt-get update && sudo apt-get install -y apt-transport-https
curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -
echo "deb https://apt.kubernetes.io/ kubernetes-xenial main" | sudo tee -a /etc/apt/sources.list.d/kubernetes.list
sudo apt-get update
sudo apt-get install -y kubectlReference
Install minikube
curl -Lo minikube https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64chmod +x minikube
sudo mv minikube /usr/local/bin/Reference
https://kubernetes.io/docs/tasks/tools/install-minikube/
Cheat Sheet
Config file
Create/reset cluster
SSH to minikube
Dashboard
Your browser should popup with K8s dashboard.
Addons
List
Disable
Start your cluster then run:
Make kubeconfig for WSL
When running Minikube on Windows and using WSL with kubectl to access it, generate the kubconfig file for the WSL running the following commands:
Replace YOUR-WINDOWS-USER and YOUR-LINUX-USER.
Last updated