calico可以running但3个节点均处于未就绪状态

来源:5-7 网络插件-Calico_1

Tity酱

2022-09-05

kubectl get nodes显示所有节点均ready,但是calico一直未ready
图片描述查看三个节点上calico-node日志均报同样的错:
2022-09-04T19:02:32.168232257-04:00 stdout F 2022-09-04 23:02:32.168 [WARNING][71] felix/health.go 211: Reporter is not ready. name=“int_dataplane"
2022-09-04T19:02:32.168254516-04:00 stdout F 2022-09-04 23:02:32.168 [WARNING][71] felix/health.go 211: Reporter is not ready. name=“async_calc_graph"
2022-09-04T19:02:32.168607283-04:00 stdout F 2022-09-04 23:02:32.168 [WARNING][71] felix/health.go 173: Health: not ready
2022-09-04T19:02:32.994393376-04:00 stdout F 2022-09-04 23:02:32.994 [INFO][71] felix/watchercache.go 181: Full resync is required ListRoot=”/calico/resources/v3/projectcalico.org/kubernetesendpointslices"
2022-09-04T19:02:32.996688022-04:00 stdout F 2022-09-04 23:02:32.996 [INFO][71] felix/watchercache.go 194: Failed to perform list of current data during resync ListRoot=”/calico/resources/v3/projectcalico.org/kubernetesendpointslices" error=resource does not exist: KubernetesEndpointSlice with error: the server could not find the requested resource
2022-09-04T19:02:33.891831774-04:00 stdout F 2022-09-04 23:02:33.891 [WARNING][71] felix/health.go 211: Reporter is not ready. name=“async_calc_graph"
2022-09-04T19:02:33.891848839-04:00 stdout F 2022-09-04 23:02:33.891 [WARNING][71] felix/health.go 211: Reporter is not ready. name=“int_dataplane"
2022-09-04T19:02:33.997615658-04:00 stdout F 2022-09-04 23:02:33.997 [INFO][71] felix/watchercache.go 181: Full resync is required ListRoot=”/calico/resources/v3/projectcalico.org/kubernetesendpointslices"
2022-09-04T19:02:33.999164488-04:00 stdout F 2022-09-04 23:02:33.998 [INFO][71] felix/watchercache.go 194: Failed to perform list of current data during resync ListRoot=”/calico/resources/v3/projectcalico.org/kubernetesendpointslices" error=resource does not exist: KubernetesEndpointSlice with error: the server could not find the requested resource
2022-09-04T19:02:34.99974699-04:00 stdout F 2022-09-04 23:02:34.999 [INFO][71] felix/watchercache.go 181: Full resync is required ListRoot="/calico/resources/v3/projectcalico.org/kubernetesendpointslices"
请老师帮忙看看,不胜感激!

写回答

1回答

刘果国

2022-09-05

重启一下kubelet,从头看日志,看看有没有什么报错。没问题的话kill掉caliconode的pod,触发重启,也是从头看日志。

0
4
刘果国
回复
Tity酱
恩 这个问题是calico尝试访问apiserver失败了,10.254这个ip是service ip,需要kubeproxy的支持。所以很可能是kubeproxy不正常
2022-09-06
共4条回复

Kubernetes生产落地全程实践

一个互联网公司落地Kubernetes全过程点点滴滴

2293 学习 · 2216 问题

查看课程