Setup minikube on VirtualBox

Install kubectl:curl -LO kubectl executable and move it to system path:sudo chmod +x ./kubectlsudo mv ./kubectl /usr/local/bin/kubectlNow install minikube:curl -Lo minikube && chmod +x minikube && sudo mv minikube /usr/local/bin/minikube versionStart minikube with vm-driver=none:sudo minikube start -vm-driver=noneHere is an issue: root privileges are required to use minikube and kubectl (‘minikube start’ command outputs “When using the none driver, the kubectl config and credentials generated will be root owned and will appear in the root home directory”)..To fix it run:export CHANGE_MINIKUBE_NONE_USER=truesudo -E minikube start -vm-driver=noneLet’s make the fix persistent so it will apply on system bootload:echo ‘export CHANGE_MINIKUBE_NONE_USER=true’ >> ~/.bashrcCheck that everything works properly:kubectl cluster-infoThat’s all for now.Enjoy the playing with Kubernetes!. More details

Leave a Reply