Last active
July 3, 2018 20:14
-
-
Save stongo/398311990c35752bc87728891fa1d3fd to your computer and use it in GitHub Desktop.
start minikube using hyperkit and setup rbac properly
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
# install hyperkit | |
curl -LO https://storage.googleapis.com/minikube/releases/latest/docker-machine-driver-hyperkit \ | |
&& chmod +x docker-machine-driver-hyperkit \ | |
&& sudo mv docker-machine-driver-hyperkit /usr/local/bin/ \ | |
&& sudo chown root:wheel /usr/local/bin/docker-machine-driver-hyperkit \ | |
&& sudo chmod u+s /usr/local/bin/docker-machine-driver-hyperkit |
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
# add this to your ~/.bash_profile and then do `source ~/.bash_profile` | |
# then you can start minikube any time correctly by doing `minikube_start` from terminal | |
minikube_start () { | |
minikube start --kubernetes-version=v1.9.0 --extra-config=apiserver.Authorization.Mode=RBAC --vm-driver hyperkit | |
kubectl create clusterrolebinding add-on-cluster-admin --clusterrole=cluster-admin --serviceaccount=kube-system:default | |
minikube dashboard | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment