I am trying to run k8s with authentication and rbac. When I start minikube with basic auth file, it does not start.
I saw that there are some duplicate questions to this such as Minikube with basic-auth fails to start and Minikube never start - Error restarting cluster but none of them provide the solution. I tried to stop/delete minikube machine as well. It works only if I don't pass password file. I also tried to ssh to minikube and place users.csv file in /var/lib/minikube folder.
Here is the command that I used to start minikube:
minikube --extra-config=apiserver.basic-auth-file=users.csv start
With this command, minikube stucked as follow:
minikube --extra-config=apiserver.basic-auth-file=users.csv start Starting local Kubernetes v1.10.0 cluster... Starting VM... Getting VM IP address... Moving files into cluster... Setting up certs... Connecting to cluster... Setting up kubeconfig... Starting cluster components...