minikube: shadowsock proxy: kube-proxy configmap update: timed out: Unable to register node connection refused

Is this a BUG REPORT or FEATURE REQUEST? (choose one): BUG REPORT

Please provide the following details:

Environment: macOS High Sierra(MacBook Pro (Retina, 15-inch, Mid 2015)) Docker version 18.06.0-ce, build 0ffa825 kubectl version:v1.10.2

Minikube version (use minikube version): v0.28.2

  • OS (e.g. from /etc/os-release): macOS High Sierra(MacBook Pro (Retina, 15-inch, Mid 2015)) cat: /etc/os-release: No such file or directory
  • VM Driver (e.g. cat ~/.minikube/machines/minikube/config.json | grep DriverName): “DriverName”: “virtualbox”,
  • ISO version (e.g. cat ~/.minikube/machines/minikube/config.json | grep -i ISO or minikube ssh cat /etc/VERSION):“Boot2DockerURL”: “file:///Users/ofengx/.minikube/cache/iso/minikube-v0.28.1.iso”
  • Install tools: Homebrew 1.7.1 (Homebrew/homebrew-core (git revision 299fc; last commit 2018-07-30))
  • Others: The above can be generated in one go with the following commands (can be copied and pasted directly into your terminal):
minikube version
echo "";
echo "OS:";
cat /etc/os-release
echo "";
echo "VM driver": 
grep DriverName ~/.minikube/machines/minikube/config.json
echo "";
echo "ISO version";
grep -i ISO ~/.minikube/machines/minikube/config.json

What happened:

bogon% minikube start
Starting local Kubernetes v1.10.0 cluster...
Starting VM...
Getting VM IP address...
Moving files into cluster...
Setting up certs...
Connecting to cluster...
Setting up kubeconfig...
Starting cluster components...
E0731 18:16:39.216933   18636 start.go:305] Error restarting cluster:  restarting kube-proxy: waiting for kube-proxy to be up for configmap update: timed out waiting for the condition
E0731 18:16:39.327064   18636 util.go:151] Error uploading error message: : Post https://clouderrorreporting.googleapis.com/v1beta1/projects/k8s-minikube/events:report?key=AIzaSyACUwzG0dEPcl-eOgpDKnyKoUFgHdfoFuA: read tcp 192.168.1.102:56815->172.217.24.42:443: read: connection reset by peer

What you expected to happen: Can start correctly

How to reproduce it (as minimally and precisely as possible): minikube start

Output of minikube logs (if applicable):

Jul 31 10:32:11 minikube kubelet[3121]: I0731 10:32:11.516325    3121 kubelet_node_status.go:271] Setting node annotation to enable volume controller attach/detach
Jul 31 10:32:11 minikube kubelet[3121]: I0731 10:32:11.519107    3121 kubelet_node_status.go:82] Attempting to register node minikube
Jul 31 10:32:11 minikube kubelet[3121]: E0731 10:32:11.519447    3121 kubelet_node_status.go:106] Unable to register node "minikube" with API server: Post https://localhost:8443/api/v1/nodes: dial tcp 127.0.0.1:8443: getsockopt: connection refused
Jul 31 10:32:11 minikube kubelet[3121]: E0731 10:32:11.891049    3121 reflector.go:205] k8s.io/kubernetes/pkg/kubelet/kubelet.go:460: Failed to list *v1.Node: Get https://localhost:8443/api/v1/nodes?fieldSelector=metadata.name%3Dminikube&limit=500&resourceVersion=0: dial tcp 127.0.0.1:8443: getsockopt: connection refused
Jul 31 10:32:11 minikube kubelet[3121]: E0731 10:32:11.892339    3121 reflector.go:205] k8s.io/kubernetes/pkg/kubelet/config/apiserver.go:47: Failed to list *v1.Pod: Get https://localhost:8443/api/v1/pods?fieldSelector=spec.nodeName%3Dminikube&limit=500&resourceVersion=0: dial tcp 127.0.0.1:8443: getsockopt: connection refused
Jul 31 10:32:11 minikube kubelet[3121]: E0731 10:32:11.893691    3121 reflector.go:205] k8s.io/kubernetes/pkg/kubelet/kubelet.go:451: Failed to list *v1.Service: Get https://localhost:8443/api/v1/services?limit=500&resourceVersion=0: dial tcp 127.0.0.1:8443: getsockopt: connection refused
Jul 31 10:32:12 minikube kubelet[3121]: E0731 10:32:12.183082    3121 event.go:209] Unable to write event: 'Patch https://localhost:8443/api/v1/namespaces/default/events/minikube.15466b9eb0ebe955: dial tcp 127.0.0.1:8443: getsockopt: connection refused' (may retry after sleeping)
Jul 31 10:32:12 minikube kubelet[3121]: W0731 10:32:12.381350    3121 status_manager.go:461] Failed to get status for pod "kube-apiserver-minikube_kube-system(8992e871ee1a351e263f594547a078f7)": Get https://localhost:8443/api/v1/namespaces/kube-system/pods/kube-apiserver-minikube: dial tcp 127.0.0.1:8443: getsockopt: connection refused
Jul 31 10:32:12 minikube kubelet[3121]: W0731 10:32:12.381864    3121 status_manager.go:461] Failed to get status for pod "kube-apiserver-minikube_kube-system(dba6863aab51a307a859d780f9ae1044)": Get https://localhost:8443/api/v1/namespaces/kube-system/pods/kube-apiserver-minikube: dial tcp 127.0.0.1:8443: getsockopt: connection refused
Jul 31 10:32:12 minikube kubelet[3121]: W0731 10:32:12.382410    3121 status_manager.go:461] Failed to get status for pod "kube-controller-manager-minikube_kube-system(e46ad27d50ade97ba19ee3c2bbf58276)": Get https://localhost:8443/api/v1/namespaces/kube-system/pods/kube-controller-manager-minikube: dial tcp 127.0.0.1:8443: getsockopt: connection refused
Jul 31 10:32:12 minikube kubelet[3121]: W0731 10:32:12.382693    3121 status_manager.go:461] Failed to get status for pod "etcd-minikube_kube-system(e5e1f61a35d019a62e13bbcf10bd25c4)": Get https://localhost:8443/api/v1/namespaces/kube-system/pods/etcd-minikube: dial tcp 127.0.0.1:8443: getsockopt: connection refused
Jul 31 10:32:12 minikube kubelet[3121]: W0731 10:32:12.382875    3121 status_manager.go:461] Failed to get status for pod "etcd-minikube_kube-system(1721ddabe174a549a90501ff84c8b807)": Get https://localhost:8443/api/v1/namespaces/kube-system/pods/etcd-minikube: dial tcp 127.0.0.1:8443: getsockopt: connection refused
Jul 31 10:32:12 minikube kubelet[3121]: W0731 10:32:12.383052    3121 status_manager.go:461] Failed to get status for pod "kube-controller-manager-minikube_kube-system(375ab1764ef440b06253b7d8f5aa513f)": Get https://localhost:8443/api/v1/namespaces/kube-system/pods/kube-controller-manager-minikube: dial tcp 127.0.0.1:8443: getsockopt: connection refused
Jul 31 10:32:12 minikube kubelet[3121]: E0731 10:32:12.892489    3121 reflector.go:205] k8s.io/kubernetes/pkg/kubelet/kubelet.go:460: Failed to list *v1.Node: Get https://localhost:8443/api/v1/nodes?fieldSelector=metadata.name%3Dminikube&limit=500&resourceVersion=0: dial tcp 127.0.0.1:8443: getsockopt: connection refused
Jul 31 10:32:12 minikube kubelet[3121]: E0731 10:32:12.892865    3121 reflector.go:205] k8s.io/kubernetes/pkg/kubelet/config/apiserver.go:47: Failed to list *v1.Pod: Get https://localhost:8443/api/v1/pods?fieldSelector=spec.nodeName%3Dminikube&limit=500&resourceVersion=0: dial tcp 127.0.0.1:8443: getsockopt: connection refused
Jul 31 10:32:12 minikube kubelet[3121]: E0731 10:32:12.894134    3121 reflector.go:205] k8s.io/kubernetes/pkg/kubelet/kubelet.go:451: Failed to list *v1.Service: Get https://localhost:8443/api/v1/services?limit=500&resourceVersion=0: dial tcp 127.0.0.1:8443: getsockopt: connection refused
Jul 31 10:32:13 minikube kubelet[3121]: E0731 10:32:13.893413    3121 reflector.go:205] k8s.io/kubernetes/pkg/kubelet/kubelet.go:460: Failed to list *v1.Node: Get https://localhost:8443/api/v1/nodes?fieldSelector=metadata.name%3Dminikube&limit=500&resourceVersion=0: dial tcp 127.0.0.1:8443: getsockopt: connection refused
Jul 31 10:32:13 minikube kubelet[3121]: E0731 10:32:13.895094    3121 reflector.go:205] k8s.io/kubernetes/pkg/kubelet/config/apiserver.go:47: Failed to list *v1.Pod: Get https://localhost:8443/api/v1/pods?fieldSelector=spec.nodeName%3Dminikube&limit=500&resourceVersion=0: dial tcp 127.0.0.1:8443: getsockopt: connection refused
Jul 31 10:32:13 minikube kubelet[3121]: E0731 10:32:13.895782    3121 reflector.go:205] k8s.io/kubernetes/pkg/kubelet/kubelet.go:451: Failed to list *v1.Service: Get https://localhost:8443/api/v1/services?limit=500&resourceVersion=0: dial tcp 127.0.0.1:8443: getsockopt: connection refused
Jul 31 10:32:14 minikube kubelet[3121]: E0731 10:32:14.767104    3121 eviction_manager.go:246] eviction manager: failed to get get summary stats: failed to get node info: node "minikube" not found
Jul 31 10:32:14 minikube kubelet[3121]: E0731 10:32:14.895824    3121 reflector.go:205] k8s.io/kubernetes/pkg/kubelet/config/apiserver.go:47: Failed to list *v1.Pod: Get https://localhost:8443/api/v1/pods?fieldSelector=spec.nodeName%3Dminikube&limit=500&resourceVersion=0: dial tcp 127.0.0.1:8443: getsockopt: connection refused
Jul 31 10:32:14 minikube kubelet[3121]: E0731 10:32:14.895824    3121 reflector.go:205] k8s.io/kubernetes/pkg/kubelet/kubelet.go:460: Failed to list *v1.Node: Get https://localhost:8443/api/v1/nodes?fieldSelector=metadata.name%3Dminikube&limit=500&resourceVersion=0: dial tcp 127.0.0.1:8443: getsockopt: connection refused
Jul 31 10:32:14 minikube kubelet[3121]: E0731 10:32:14.897166    3121 reflector.go:205] k8s.io/kubernetes/pkg/kubelet/kubelet.go:451: Failed to list *v1.Service: Get https://localhost:8443/api/v1/services?limit=500&resourceVersion=0: dial tcp 127.0.0.1:8443: getsockopt: connection refused
Jul 31 10:32:15 minikube kubelet[3121]: E0731 10:32:15.898092    3121 reflector.go:205] k8s.io/kubernetes/pkg/kubelet/config/apiserver.go:47: Failed to list *v1.Pod: Get https://localhost:8443/api/v1/pods?fieldSelector=spec.nodeName%3Dminikube&limit=500&resourceVersion=0: dial tcp 127.0.0.1:8443: getsockopt: connection refused
Jul 31 10:32:15 minikube kubelet[3121]: E0731 10:32:15.898826    3121 reflector.go:205] k8s.io/kubernetes/pkg/kubelet/kubelet.go:460: Failed to list *v1.Node: Get https://localhost:8443/api/v1/nodes?fieldSelector=metadata.name%3Dminikube&limit=500&resourceVersion=0: dial tcp 127.0.0.1:8443: getsockopt: connection refused
Jul 31 10:32:15 minikube kubelet[3121]: E0731 10:32:15.900280    3121 reflector.go:205] k8s.io/kubernetes/pkg/kubelet/kubelet.go:451: Failed to list *v1.Service: Get https://localhost:8443/api/v1/services?limit=500&resourceVersion=0: dial tcp 127.0.0.1:8443: getsockopt: connection refused
Jul 31 10:32:16 minikube kubelet[3121]: E0731 10:32:16.900171    3121 reflector.go:205] k8s.io/kubernetes/pkg/kubelet/config/apiserver.go:47: Failed to list *v1.Pod: Get https://localhost:8443/api/v1/pods?fieldSelector=spec.nodeName%3Dminikube&limit=500&resourceVersion=0: dial tcp 127.0.0.1:8443: getsockopt: connection refused
Jul 31 10:32:16 minikube kubelet[3121]: E0731 10:32:16.901161    3121 reflector.go:205] k8s.io/kubernetes/pkg/kubelet/kubelet.go:460: Failed to list *v1.Node: Get https://localhost:8443/api/v1/nodes?fieldSelector=metadata.name%3Dminikube&limit=500&resourceVersion=0: dial tcp 127.0.0.1:8443: getsockopt: connection refused
Jul 31 10:32:16 minikube kubelet[3121]: E0731 10:32:16.901786    3121 reflector.go:205] k8s.io/kubernetes/pkg/kubelet/kubelet.go:451: Failed to list *v1.Service: Get https://localhost:8443/api/v1/services?limit=500&resourceVersion=0: dial tcp 127.0.0.1:8443: getsockopt: connection refused
Jul 31 10:32:17 minikube kubelet[3121]: I0731 10:32:17.380585    3121 kubelet_node_status.go:271] Setting node annotation to enable volume controller attach/detach

Anything else do we need to know: Using the Chinese network Shadowsock + ss + global Mode

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 13
  • Comments: 22 (3 by maintainers)

Most upvoted comments

I am seeing this problem as well on MacOS High Sierra and the VMware Fusion Driver.

I managed to resolve the issue by starting minikube in this way explicitly mentioning the K8S version

minikube start --kubernetes-version v1.11.0

minikube delete only didn’t fix the issue for me as many commented mentioned but mentioning the cluster version did

this actually helped me as well, but not just that, it didn’t work as i expected, here’s what i did: open virtual box and remove all vms, then follow @n1t1nv3rma hint: $ minikube delete $ rm -rf ~/.minikube

now restart your computer (this did the trick for me, i did all these steps without restarting with no luck)

$ brew cask reinstall minikube

but when you want to start minikube provide kubernetes version to it first get current kubernetes version by running: $ kubectl version (mine is 1.13.1 right now)

now use it like so: $ minikube start --kubernetes-version v1.13.1

Note: you have to prefix ‘v’ to the version otherwise it won’t work. Note2: being connected to a vpn will cause timeout issues

all these steps has been posted by others, i just ran them in this order and it worked.

I managed to resolve the issue by starting minikube in this way explicitly mentioning the K8S version

minikube start --kubernetes-version v1.11.0

minikube delete only didn’t fix the issue for me as many commented mentioned but mentioning the cluster version did

Hello this is my first post so don’t mind missing precision, Im on a Windows 10 Home, I7, 16Gb use Virtualbox, installed using choco I had the same error as in the first Question and solved it by: Giving Virtualbox permanent Admin privileges through Start-> VirtualBox ->properties ->Compatibility -> start as Administrator Then Allowing VirtualBox permanentely to communicate through the Windows Defender Firewall (in Adding VirtualBox to the allowed Apps List) finally restart system and

minikube delete && minikube start

in a regular non admin cmd shell made it work

Just let me know if it works for you as well and if you think the privileges are too risky (on a private W-lan)