问题描述:k8s Node节点获取失败
在这里插入图片描述
日志信息:

I0718 12:35:54.113048   30951 trace.go:81] Trace[628269585]: "Reflector k8s.io/kubernetes/pkg/kubelet/kubelet.go:453 ListAndWatch" (started: 2020-07-18 12:35:24.11267359 +0800 CST m=+31.100277769) (total time: 30.000349571s):
Trace[628269585]: [30.000349571s] [30.000349571s] END
E0718 12:35:54.113075   30951 reflector.go:125] k8s.io/kubernetes/pkg/kubelet/kubelet.go:453: Failed to list *v1.Node: Get https://10.0.0.10:7443/api/v1/nodes?fieldSelector=metadata.name%3Dk8s0-6.host.com&limit=500&resourceVersion=0: dial tcp 10.0.0.10:7443: i/o timeout
I0718 12:35:54.114029   30951 trace.go:81] Trace[1766742751]: "Reflector k8s.io/kubernetes/pkg/kubelet/kubelet.go:444 ListAndWatch" (started: 2020-07-18 12:35:24.113739877 +0800 CST m=+31.101344006) (total time: 30.000270412s):
Trace[1766742751]: [30.000270412s] [30.000270412s] END
E0718 12:35:54.114047   30951 reflector.go:125] k8s.io/kubernetes/pkg/kubelet/kubelet.go:444: Failed to list *v1.Service: Get https://10.0.0.10:7443/api/v1/services?limit=500&resourceVersion=0: dial tcp 10.0.0.10:7443: i/o timeout
I0718 12:35:54.115114   30951 trace.go:81] Trace[1030259758]: "Reflector k8s.io/kubernetes/pkg/kubelet/config/apiserver.go:47 ListAndWatch" (started: 2020-07-18 12:35:24.114888597 +0800 CST m=+31.102492736) (total time: 30.000214959s):
Trace[1030259758]: [30.000214959s] [30.000214959s] END
E0718 12:35:54.115125   30951 reflector.go:125] k8s.io/kubernetes/pkg/kubelet/config/apiserver.go:47: Failed to list *v1.Pod: Get https://10.0.0.10:7443/api/v1/pods?fieldSelector=spec.nodeName%3Dk8s0-6.host.com&limit=500&resourceVersion=0: dial tcp 10.0.0.10:7443: i/o timeout

从日志中可以清楚的看到连接不到10的7443端口;这时候我telnet这个端口是不通的,原因是我用的机器是腾讯云服务器,这个IP是我做的虚拟VIP,当时参考以下资料解决了
在这里插入图片描述

重新获取
在这里插入图片描述

Logo

K8S/Kubernetes社区为您提供最前沿的新闻资讯和知识内容

更多推荐