calico/node is not ready: BIRD is not ready: BGP not established with 解决
K8s集群中就某个节点的calico启动不起来,报错如下:calico/node is not ready: BIRD is not ready: BGP not established with ........---------------------------------------------------------------------------------------------
K8s集群中就某个节点的calico启动不起来,报错如下:
calico/node is not ready: BIRD is not ready: BGP not established with ........
------------------------------------------------------------------------------------------------------------------------
第一种解决办法:
calico启动后执行:
kubectl set env daemonset/calico-node -n kube-system IP_AUTODETECTION_METHOD=skip-interface=eth0
然后观察各个节点上calico状态,注意标红部分为你实际的网卡名称,可在linux上通过
ip a
查询到。
------------------------------------------------------------------------------------------------------------------------
第二种解决办法:
编辑calico.yaml,在node镜像名字下面的env环境变量中加入如下参数:
- name: IP_AUTODETECTION_METHOD
value: "interface=eth0"
然后重启所有calico,观察各个节点calico状态。 eth0代表网卡名称
------------------------------------------------------------------------------------------------------------------------
题外:
很奇怪,集群服务器就一个网卡,而且就特定节点的calico启动不起来,其它节点都正常,节点间无差异.........
更多推荐
所有评论(0)