-
-
Save F21/08bfc2e3592bed1e931ec40b8d2ab6f5 to your computer and use it in GitHub Desktop.
minikube start --kubernetes-version=v1.7.0 --extra-config=apiserver.Authorization.Mode=RBAC | |
kubectl create clusterrolebinding add-on-cluster-admin --clusterrole=cluster-admin --serviceaccount=kube-system:default | |
minikube dashboard |
alternatively you can start minikube with --bootstrapper=kubeadm
and this will enable RBAC for you
Thanks. Helpful.
Since minikube 26.0, kubeadm is the default bootstrapper for minikube.
For kubeadm, the extra-config key:value pair is slightly different.
It is mentioned in documentation of minikube.
In this case, the correct command will be:
$ minikube start --extra-config=apiserver.authorization-mode=RBAC
$ kubectl create clusterrolebinding add-on-cluster-admin --clusterrole=cluster-admin --serviceaccount=kube-system:default
More details at
kubernetes/minikube#1734 comment
kubernetes/minikube#1722
kubernetes/minikube#2510
It works like charm after run minikube delete :)
This is my working command
minikube start --vm-driver="hyperv" --memory=2048 --cpus=4 --hyperv-virtual-switch="primary-virtual-switch" --v=7 --alsologtostderr --bootstrapper=kubeadm --extra-config=apiserver.authorization-mode=RBAC
I was able to get it to work with this. The --bootstrapper
option seems to be required when you are running it with --vm-driver=none
minikube start --vm-driver=none --bootstrapper=kubeadm --extra-config=apiserver.authorization-mode=RBAC
thanks! very helpful!
It's work! thank you!
Fantastic, thanks.
👍
It still works..!
Thanks.