Calico Readiness probe failed: calico/node is not ready故障处理
calico 报如下错误
Readiness probe failed: calico/node is not ready: BIRD is not ready: Error querying BIRD: unable to connect to BIRDv4 socket: dial unix /var/run/calico/bird.ctl: connect: connection refused
解决方案:
修改 ds calico-node配置文件加入如下两行
- name: IP_AUTODETECTION_METHOD
value: "interface=eth0"
value指向从ip a看到的实际网卡名。
具体操作步骤
- 编辑ds calico-node加入配置
kubectl edit ds calico-node -n kube-system
# Cluster type to identify the deployment type
- name: CLUSTER_TYPE
value: "k8s,bgp"
- name: IP_AUTODETECTION_METHOD # 新增
value: "interface=eth0" # 新增
# Auto-detect the BGP IP address.
- name: IP
value: "autodetect"
# Enable IPIP
- name: CALICO_IPV4POOL_IPIP
value: "Always"
- 重启calico
kubectl rollout restart daemonset calico-node -n kube-system
daemonset.apps/calico-node restarted
评论区