zoukankan      html  css  js  c++  java
  • 新的Node加入集群后Calico没有运行

    caliconode is not ready: BIRD is not ready BGP not established with 172.19.0.1

    新的node加入集群后,在启动calico的时候,状态处于running ready:0/1

    通过describe pod 查看事件,报错:

    Warning Unhealthy 5m23s kubelet Readiness probe failed: 2020-12-09 05:51:37.828 [INFO][206] 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 172.19.0.1
    Warning Unhealthy 5m13s kubelet Readiness probe failed: 2020-12-09 05:51:47.842 [INFO][270] 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 172.19.0.1
    

    调整calicao 网络插件的网卡发现机制,修改IP_AUTODETECTION_METHOD对应的value值。官方提供的yaml文件中,ip识别策略(IPDETECTMETHOD)没有配置,即默认为first-found,这会导致一个网络异常的ip作为nodeIP被注册,从而影响node-to-node mesh。我们可以修改成can-reach或者interface的策略,尝试连接某一个Ready的node的IP,以此选择出正确的IP。

    解决:

    calico.yaml 文件添加以下二行

    - name: IP_AUTODETECTION_METHOD 
    
      value: "interface=em.*" # em.*正则表示匹配到em开头的所有网卡
    

    配置如下

    - name: CLUSTER_TYPE 
    
      value: "k8s,bgp" 
    
    - name: IP_AUTODETECTION_METHOD 
    
      value: "interface=em.*" #或者 value: "interface=em3"
    
    - name: IP 
    
      value: "autodetect" **------------恢复内容开始------------**
    

    caliconode is not ready: BIRD is not ready BGP not established with 172.19.0.1

    新的node加入集群后,在启动calico的时候,状态处于running ready:0/1

    通过describe pod 查看事件,报错:

    Warning Unhealthy 5m23s kubelet Readiness probe failed: 2020-12-09 05:51:37.828 [INFO][206] 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 172.19.0.1
    Warning Unhealthy 5m13s kubelet Readiness probe failed: 2020-12-09 05:51:47.842 [INFO][270] 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 172.19.0.1
    

    调整calicao 网络插件的网卡发现机制,修改IP_AUTODETECTION_METHOD对应的value值。官方提供的yaml文件中,ip识别策略(IPDETECTMETHOD)没有配置,即默认为first-found,这会导致一个网络异常的ip作为nodeIP被注册,从而影响node-to-node mesh。我们可以修改成can-reach或者interface的策略,尝试连接某一个Ready的node的IP,以此选择出正确的IP。

    解决:

    calico.yaml 文件添加以下二行

    - name: IP_AUTODETECTION_METHOD 
    
      value: "interface=em.*" # em.*正则表示匹配到em开头的所有网卡
    

    配置如下

    - name: CLUSTER_TYPE 
    
      value: "k8s,bgp" 
    
    - name: IP_AUTODETECTION_METHOD 
    
      value: "interface=em.*" #或者 value: "interface=em3"
    
    - name: IP 
    
      value: "autodetect" 
    

    ------------恢复内容结束------------

  • 相关阅读:
    2016年3月至9月随笔
    带大三个hybird app项目的设计管理笔记
    小议新人的培养
    GitHub上整理的一些工具,求补充——转的,先mark了
    AutoMapper(一)——实现数据契约和实体类之间的转换
    GitHub上整理的一些工具
    我最常用的7个Web在线工具
    在线团队协作工具+在线UML工具
    轻量级SaaS在线作图工具(继之前介绍后完整介绍)
    分享自己使用的在线UML画图工具
  • 原文地址:https://www.cnblogs.com/houchaoying/p/14652573.html
Copyright © 2011-2022 走看看