You need to have VirtualBox installed in your computer.
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 kubectl
curl -Lo minikube https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64
chmod +x minikube
sudo mv minikube /usr/local/bin/
cat ~/.minikube/machines/minikube/config.json
minikube delete && \
minikube start \
--kubernetes-version=v1.13.2 \
--memory=2048 \
--bootstrapper=kubeadm \
--extra-config=kubelet.authentication-token-webhook=true \
--extra-config=kubelet.authorization-mode=Webhook \
--extra-config=scheduler.address=0.0.0.0 \
--extra-config=controller-manager.address=0.0.0.0
Your browser should popup with K8s dashboard.
minikube addons disable default-storageclass
When running Minikube on Windows and using WSL with kubectl to access it, generate the kubconfig file for the WSL running the following commands:
cp -R /mnt/c/Users/YOUR-WINDOWS-USER/.minikube/ca.crt /home/YOUR-LINUX-USER/.kube/minikube-certs/
cp -R /mnt/c/Users/YOUR-WINDOWS-USER/.minikube/client.crt /home/YOUR-LINUX-USER/.kube/minikube-certs/
cp -R /mnt/c/Users/YOUR-WINDOWS-USER/.minikube/client.key /home/YOUR-LINUX-USER/.kube/minikube-certs/
cp -R /mnt/c/Users/YOUR-WINDOWS-USER/.kube/config /home/YOUR-LINUX-USER/.kube/minikube
sed -i -e 's/C\:\\Users\\YOUR-WINDOWS-USER\\.minikube\\/\/home\/YOUR-LINUX-USER\/.kube\/minikube-certs\//g' /home/YOUR-LINUX-USER/.kube/minikube