服务器环境:
腾讯云服务器两台:一台2核4G(master),一台4核8G(node)

前置情景:
在master结点执行初始化之后,在执行 kubeadm join xxx --token xxx之前执行网络插件的安装

报道错误:将重复的错误去掉了

  Warning  Unhealthy  21m   kubelet            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

  Warning  Unhealthy  21m   kubelet            Readiness probe failed: 2022-03-21 02:19:39.457 [INFO][175] confd/health.go 180: Number of node(s) with BGP peering established = 0

  Warning  Unhealthy  20m  kubelet  Readiness probe failed: 2022-03-21 02:19:49.457 [INFO][204] 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 

网上最多的解决方法:修改yaml的配置文件,说是多个没有找到对应的ip,需要配置一个:对我无效

            - name: IP_AUTODETECTION_METHOD
              value: "interface=eth0"

在https://blog.csdn.net/sinat_35406909/article/details/109711759这篇博客中,提到了要官网说要关闭防火墙,或者开端口,由于我的是云服务器,端口的每用一个开一个,所以可能是端口没开放

在这里插入图片描述
开启两个服务器的179端口,重新部署网络插件:
kubectl apply -f https://docs.projectcalico.org/manifests/calico.yaml

问题解决

Logo

K8S/Kubernetes社区为您提供最前沿的新闻资讯和知识内容

更多推荐