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.

Categories: error fix

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 🙂

Anonymous · November 26, 2022 at 11:37 pm

Thanks you guy. A tribute from China

Eric · February 27, 2023 at 8:00 pm

Thank you. It worked for me also.