DNSutils pod 在 Kubernetes 中给出"incompatible CNI versions"错误



我制作了一个kubernetes集群。所有默认的pod似乎都初始化得很好,但当我尝试添加dnsutils pod时,我会收到以下错误:

Events:
Type     Reason                  Age               From               Message
----     ------                  ----              ----               -------
Normal   Scheduled               3m29s             default-scheduler  Successfully assigned default/dnsutils to node-4
Warning  FailedCreatePodSandBox  3m29s             kubelet            Failed to create pod sandbox: rpc error: code = Unknown desc = failed to setup network for sandbox "0ee2103d7d204484a39d5a9ad6474704ddc0bf1f1557238b754c89c2d071b00e": plugin type="bridge" failed (add): incompatible CNI versions; config is "1.0.0", plugin supports ["0.1.0" "0.2.0" "0.3.0" "0.3.1" "0.4.0"]
Warning  FailedCreatePodSandBox  3m15s             kubelet            Failed to create pod sandbox: rpc error: code = Unknown desc = failed to setup network for sandbox "3b46b71c5a4c924f13f8a344940a883cb91247dfca95668384d763b403e02d42": plugin type="bridge" failed (add): incompatible CNI versions; config is "1.0.0", plugin supports ["0.1.0" "0.2.0" "0.3.0" "0.3.1" "0.4.0"]
Warning  FailedCreatePodSandBox  3m                kubelet            Failed to create pod sandbox: rpc error: code = Unknown desc = failed to setup network for sandbox "a2b7b5a0c558fad41e6b65246b41ff8959cbf0259a94299abe496c983a77c27a": plugin type="bridge" failed (add): incompatible CNI versions; config is "1.0.0", plugin supports ["0.1.0" "0.2.0" "0.3.0" "0.3.1" "0.4.0"]
Warning  FailedCreatePodSandBox  2m47s             kubelet            Failed to create pod sandbox: rpc error: code = Unknown desc = failed to setup network for sandbox "2ee767296a625c213f6f09f24a37bb73bb673ee60c2d2df13163c865f1248074": plugin type="bridge" failed (add): incompatible CNI versions; config is "1.0.0", plugin supports ["0.1.0" "0.2.0" "0.3.0" "0.3.1" "0.4.0"]
Warning  FailedCreatePodSandBox  2m32s             kubelet            Failed to create pod sandbox: rpc error: code = Unknown desc = failed to setup network for sandbox "d29b1497142a7abc46e714001f183bed8e68798a5b5f2b559afd9e2eff17c377": plugin type="bridge" failed (add): incompatible CNI versions; config is "1.0.0", plugin supports ["0.1.0" "0.2.0" "0.3.0" "0.3.1" "0.4.0"]
Warning  FailedCreatePodSandBox  2m17s             kubelet            Failed to create pod sandbox: rpc error: code = Unknown desc = failed to setup network for sandbox "862a82892c68397ae7df7d0c410bda7b46522c79c1b9eb61a1ef575d4d09e0a9": plugin type="bridge" failed (add): incompatible CNI versions; config is "1.0.0", plugin supports ["0.1.0" "0.2.0" "0.3.0" "0.3.1" "0.4.0"]
Warning  FailedCreatePodSandBox  2m2s              kubelet            Failed to create pod sandbox: rpc error: code = Unknown desc = failed to setup network for sandbox "03000265ca15443c0b571152f97d5e4f95f67437dfe72bc0cd18bc9132f181cd": plugin type="bridge" failed (add): incompatible CNI versions; config is "1.0.0", plugin supports ["0.1.0" "0.2.0" "0.3.0" "0.3.1" "0.4.0"]
Warning  FailedCreatePodSandBox  107s              kubelet            Failed to create pod sandbox: rpc error: code = Unknown desc = failed to setup network for sandbox "5a02ac5807e58b6aa7c0fac1d807533ff61f3bd223600e5d5177f96a22f9253b": plugin type="bridge" failed (add): incompatible CNI versions; config is "1.0.0", plugin supports ["0.1.0" "0.2.0" "0.3.0" "0.3.1" "0.4.0"]
Warning  FailedCreatePodSandBox  95s               kubelet            Failed to create pod sandbox: rpc error: code = Unknown desc = failed to setup network for sandbox "7d15145fc5d4041d923824915f5f0bb0090e8e9e4e86cd91a2fa94b11b69e18c": plugin type="bridge" failed (add): incompatible CNI versions; config is "1.0.0", plugin supports ["0.1.0" "0.2.0" "0.3.0" "0.3.1" "0.4.0"]
Warning  FailedCreatePodSandBox  6s (x7 over 84s)  kubelet            (combined from similar events): Failed to create pod sandbox: rpc error: code = Unknown desc = failed to setup network for sandbox "4d72686240042e4764d3475e8a2aeeeef08f2b20025e58ca4e1860c628ca42bc": plugin type="bridge" failed (add): incompatible CNI versions; config is "1.0.0", plugin supports ["0.1.0" "0.2.0" "0.3.0" "0.3.1" "0.4.0"]

我使用法兰绒作为我的CNI插件。我以前在使用编织网时,在我的coredns pod上也出现了这个错误。Kubernetes网站(https://kubernetes.io/docs/concepts/extend-kubernetes/compute-storage-net/network-plugins/)说他们只支持CNI规范的0.4.0版本,所以我不知道它为什么要使用v1.0.0版本,也不知道我会如何改变它。

所以我以某种方式修复了它。当我的工作人员使用containerd时,我的主节点正在运行CRI-O。为了解决这个问题,我不得不从工人那里卸载containerd,在所有工人身上安装CRI-O和podman,然后我遇到了一个单独的问题,kubelet一直试图使用docker,尽管我卸载了docker,我通过卸载kubelet,用rm -rf (find / *kubelet*)删除所有相关文件(可能不是最安全的方法(并重新安装它来解决这个问题。然后,当我使用kubeadm重新制作集群时,由于某种原因,一切正常

相关内容

  • 没有找到相关文章

最新更新