flannel完全卸载 SoulChild 收录于 kubernetes 2021-06-29 17:06 约 82 字 预计阅读 1 分钟 - 次阅读 警告本文最后更新于 2021-06-29 21:11,文中内容可能已过时。1.删除flannel1 2 3 4 5 6 7 # k8s部署的 kubectl delete daemonset -n kube-system kube-flannel # 二进制部署的 systemctl stop flanneld rm -f /etc/systemd/system/flanneld.service rm -f /usr/local/bin/flanneld 2.删除flannel和cni网卡等配置 1 2 3 4 5 6 7 8 9 10 11 # cni ifconfig cni0 down ip link delete cni0 rm -rf /var/lib/cni/ rm -f /etc/cni/net.d/* # flannel ifconfig flannel.1 down ip link delete flannel.1 rm -fr /var/run/flannel/ rm -fr /etc/kube-flannel 3.手动清除路由1 route del -net 10.244.x.x/24 gw xxx.xxx.xxx.xxx 4.重启kubelet1 systemctl restart kubelet 请我喝杯水 赞赏 微信号 微信打赏Please enable JavaScript to view the comments powered by giscus.