On Linux, with minikube v0.34.1
, when run minikube start --logtostderr
, get following error:
I0227 18:25:12.625477 13250 kubernetes.go:121] error getting Pods with label selector "k8s-app=kube-proxy" [Get https://192.168.99.102:8443/api/v1/namespaces/kube-system/pods?labelSelector=k8s-app%3Dkube-proxy: dial tcp 192.168.99.102:8443: connect: connection refused]
And, none of following environment variable is set: $HTTP_PROXY
, $HTTPS_PROXY
, $NO_PROXY
.
After searching via google, and checked following posts, still unsolved:
Following actions have been tried, with no good news:
minikube delete; minikube start
rm -rf ~minikube/
As a newbie to K8s, really don't understand what this means, any idea ?
The solution moved to the answer section
I just moved the solution posted by Eric Wang from the question to the answer section:
With following steps seems it's resolved:
~/.minikube/cache/
, optionally.rm -rf ~/.minikube/
mkdir ~/.minikube/
.minikube/cache/
, if you did a backup.minikube stop
minikube delete
minikube start --logtostderr
Tips:
--logtostderr
flag is useful to get error info on the console.