Setup minikube on VirtualBox

Install kubectl:curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.9.0/bin/linux/amd64/kubectlMake kubectl executable and move it to system path:sudo chmod +x ./kubectlsudo mv ./kubectl /usr/local/bin/kubectlNow install minikube:curl -Lo minikube https://storage.googleapis.com/minikube/releases/v0.24.1/minikube-linux-amd64 && 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