Linux下Minikube v0.34.1启动报错:k8s-app=kube-proxy连接被拒绝
Hey Eric, awesome that you got this issue sorted out! For anyone else running into the same connection refused error with kube-proxy when using Minikube v0.34.1 on Linux—even after trying minikube delete and wiping the ~/.minikube directory—here's the solution that fixed it:
Step 1: Perform a full deep cleanup of Minikube resources
The standard minikube delete command might leave behind residual network interfaces or virtual machine artifacts that cause conflicts. Run these commands to wipe all Minikube and Kubernetes-related data completely:
minikube delete --all --purge sudo rm -rf ~/.minikube ~/.kube sudo ip link delete minikube0 # Removes the Minikube-specific network interface
Step 2: Start Minikube with an explicitly compatible Kubernetes version
Minikube v0.34.1 has known compatibility quirks with the default newer Kubernetes versions it tries to pull. Specifying a tested, compatible version resolves the kube-proxy connection refusal issue:
minikube start --logtostderr --kubernetes-version=v1.14.0
Step 3: Verify the fix
Once Minikube finishes starting, confirm that the kube-proxy pod is running correctly with this command:
kubectl get pods -n kube-system -l k8s-app=kube-proxy
You should see the pod in a Running state, and the original connection error will no longer appear.
A quick additional check: make sure your Linux system has virtualization enabled (run egrep -c '(vmx|svm)' /proc/cpuinfo—if the output is greater than 0, virtualization is active). If you suspect firewall interference, temporarily disable it to rule out port blocking on 8443 for the Minikube VM IP.
内容的提问来源于stack exchange,提问作者Eric

