![如何从 Ubuntu 18 中彻底删除 cilium?](https://linux22.com/image/751233/%E5%A6%82%E4%BD%95%E4%BB%8E%20Ubuntu%2018%20%E4%B8%AD%E5%BD%BB%E5%BA%95%E5%88%A0%E9%99%A4%20cilium%EF%BC%9F.png)
我使用以下命令安装了 cilium:
kubectl create -f https://raw.githubusercontent.com/cilium/cilium/1.7.2/install/kubernetes/quick-install.yaml
几分钟后,主机上的网络连接断开(可以从主机连接,但无法从另一台主机连接)。我删除了 cilium,
kubectl delete -f https://raw.githubusercontent.com/cilium/cilium/1.7.2/install/kubernetes/quick-install.yaml
然后重新启动。这恢复了我的网络连接,但是系统日志每 5 秒就会收到如下消息:
Apr 19 10:07:48 tv kubelet[19221]: W0419 10:07:48.258636 19221 cni.go:202] Error validating CNI config list {"cniVersion":"0.3.1","name":"cilium","plugins":[{"cniVersion":"0.3.1","enable-debug":false,"name":"cilium","type":"cilium-cni"}]}: [failed to find plugin "cilium-cni" in path [/opt/cni/bin]]
我该怎么做才能彻底去除纤毛?
答案1
你好,你可以尝试检查每个节点的这个目录
/etc/cni/net.d/05-cilium.conf
并删除此文件:
05-cilium.conf
例如:
rm /etc/cni/net.d/05-cilium.conf
最后,重新启动 flannel 守护进程
kubectl rollout restart daemonsets kube-flannel-ds-amd64 -nkube-system