zoukankan      html  css  js  c++  java
  • calico 文件丢失问题

    1. 备份calico-node控制器YAML文件. 
        kubectl get daemonset calico-node -n kube-system -o yaml --export > calico-node.yaml
    2. 删除calico-node pods.
        kubectl delete -f calico-node.yaml -n kube-system
    3. 关闭所有节点calico tunnel接口.
        ansible k8s -m shell -a "ip link set tunl0 down" --become
    4. 开启所有节点calico tunnel接口.
        ansible k8s -m shell -a "ip link set tunl0 up" --become
    5. 确认所有节点没有tunl接口相关路由.
        ansible k8s -m shell -a "route -n" --become
    6. 通过calitoctl delete node
        export ETCD_ENDPOINTS="http://172.16.95.35:2379,http://172.16.95.36:2379,http://172.16.95.37:2379,http://172.16.95.38:2379,http://172.16.95.39:2379"
        for i in $(calicoctl get node|grep node);do calicoctl delete node $i;done
        etcdctl --endpoints="http://172.16.95.35:2379,http://172.16.95.36:2379,http://172.16.95.37:2379,http://172.16.95.38:2379,http://172.16.95.39:2379" rm /calico --recursive
    7. 重建calico-node
        kubectl apply -f calico-node.yaml
    8. 验证calico连接状态
        calicoctl node status
    etcdctl ls --recursive /calico|grep node3
    etcdctl rm --recursive /calico/v1/host/xyqsdn-node3
    

      

  • 相关阅读:
    css学习总结
    bootstrap的学习总结
    一些组件配置的理解
    php 微信公众号支付(小程序也是这么支付的)
    mysql 链接超过ip限制时的报错
    php生成二维码
    wamp配置虚拟主机 php 5.6.25
    php 渣全的循环
    4、kafka、spark streaming
    gauss消元
  • 原文地址:https://www.cnblogs.com/hanwei666/p/11685873.html
Copyright © 2011-2022 走看看