k8s部署calico网络后,calico-node显示READY 0/1

describe pod显示报错:

Readiness probe failed: 2021-10-02 08:02:33.072 [INFO][205] confd/health.go 180: Number of node(s) with BGP peering established = 0
calico/node is not ready: BIRD is not ready: BGP not established with 192.168.232.133,192.168.232.134

原因是master节点网卡比较多,calico选择了错误的网卡,

修改calico.yaml,指定正确的网卡名称即可。

增加在env中增加:

– name: IP_AUTODETECTION_METHOD

value: “interface=ens*”

上一篇:项目交付时遇到的一些问题及反思


下一篇:k8s---网络