侧边栏壁纸
  • 累计撰写 61 篇文章
  • 累计创建 3 个标签
  • 累计收到 0 条评论

目 录CONTENT

文章目录

Calico Readiness probe failed: calico/node is not ready故障处理

运维匠
2024-08-19 / 0 评论 / 0 点赞 / 26 阅读 / 2245 字
温馨提示:
本文最后更新于 2024-08-19,若内容或图片失效,请留言反馈。部分素材来自网络,若不小心影响到您的利益,请联系我们删除。

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看到的实际网卡名。

具体操作步骤

  1. 编辑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"
  1. 重启calico
kubectl rollout restart daemonset calico-node  -n kube-system 
daemonset.apps/calico-node restarted
0

评论区