背景:
k8s集群正常运行过程中偶发的出现calico-node节点容器探测异常的问题,出现之后会导致宿主机所在的容器也会相应的出现网络波动,但是都是过一会儿就自动就好了,。
Liveness probe failed: Get http://localhost:9099/liveness: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
故障分析:
分析的时候发现对应的calico-node节点容器是正常的:
[root@master-01 ~]# kubectl describe pods calico-node-mlekb -n kube-system
Name: calico-node-mlekb
Namespace: kube-system
Priority: 2000001000
Priority Class Name: system-node-critical
Node: pro-slave-12/192.20.66.22
Start Time: Wed, 21 Dec 2022 14:57:38 +0800
Labels: component=calico
controller-revision-hash=74c5ff99d4
k8s-app=calico
pod-template-generation=1
Annotations: kubernetes.io/psp: system
Status: R

文章讲述了K8s集群中calico-node节点偶发的livenessprobe探测异常问题,原因在于calico-node容器尝试通过ipv6访问localhost失败。解决方法是将livenessprobe的localhost地址改为ipv4的127.0.0.1并重启容器。
最低0.47元/天 解锁文章
908

被折叠的 条评论
为什么被折叠?



