Last active
October 23, 2022 12:36
-
-
Save F21/08bfc2e3592bed1e931ec40b8d2ab6f5 to your computer and use it in GitHub Desktop.
Minikube RBAC Quick Start
This file contains 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
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 |
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..!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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:
More details at
kubernetes/minikube#1734 comment
kubernetes/minikube#1722
kubernetes/minikube#2510