I tried some solutions from here but it did not work. I deleted ~/.kube directory and it just made matters worse.

My solution is

$ minikube delete
$ minikube start

The ~/.kube directory was restored after doing this. I guess minikube takes care of initial .kube directory contents if there isn’t any. The ~/.kube/config file was created with minikube’s cluster info populated.


2 Comments

Anonymous · September 21, 2021 at 10:05 am

Your solution worked for me! Thanks!

Anonymous · May 11, 2022 at 5:40 pm

That worked!! Thanks 🙂

Leave a Reply

Your email address will not be published.