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