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.


4 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 🙂

Anonymous · July 25, 2022 at 11:50 pm

Works! You made my day! Thaaaanks from Germany!

Kartik · November 26, 2022 at 6:04 am

Worked !! thank you 🙂

Leave a Reply

Your email address will not be published.