<p>I made a kubernetes cluster. All the default pods seem to have initialized fine but when I try to add a dnsutils pod I get the following error:</p>
<pre><code>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 &quot;0ee2103d7d204484a39d5a9ad6474704ddc0bf1f1557238b754c89c2d071b00e&quot;: plugin type=&quot;bridge&quot; failed (add): incompatible CNI versions; config is &quot;1.0.0&quot;, plugin supports [&quot;0.1.0&quot; &quot;0.2.0&quot; &quot;0.3.0&quot; &quot;0.3.1&quot; &quot;0.4.0&quot;]
  Warning  FailedCreatePodSandBox  3m15s             kubelet            Failed to create pod sandbox: rpc error: code = Unknown desc = failed to setup network for sandbox &quot;3b46b71c5a4c924f13f8a344940a883cb91247dfca95668384d763b403e02d42&quot;: plugin type=&quot;bridge&quot; failed (add): incompatible CNI versions; config is &quot;1.0.0&quot;, plugin supports [&quot;0.1.0&quot; &quot;0.2.0&quot; &quot;0.3.0&quot; &quot;0.3.1&quot; &quot;0.4.0&quot;]
  Warning  FailedCreatePodSandBox  3m                kubelet            Failed to create pod sandbox: rpc error: code = Unknown desc = failed to setup network for sandbox &quot;a2b7b5a0c558fad41e6b65246b41ff8959cbf0259a94299abe496c983a77c27a&quot;: plugin type=&quot;bridge&quot; failed (add): incompatible CNI versions; config is &quot;1.0.0&quot;, plugin supports [&quot;0.1.0&quot; &quot;0.2.0&quot; &quot;0.3.0&quot; &quot;0.3.1&quot; &quot;0.4.0&quot;]
  Warning  FailedCreatePodSandBox  2m47s             kubelet            Failed to create pod sandbox: rpc error: code = Unknown desc = failed to setup network for sandbox &quot;2ee767296a625c213f6f09f24a37bb73bb673ee60c2d2df13163c865f1248074&quot;: plugin type=&quot;bridge&quot; failed (add): incompatible CNI versions; config is &quot;1.0.0&quot;, plugin supports [&quot;0.1.0&quot; &quot;0.2.0&quot; &quot;0.3.0&quot; &quot;0.3.1&quot; &quot;0.4.0&quot;]
  Warning  FailedCreatePodSandBox  2m32s             kubelet            Failed to create pod sandbox: rpc error: code = Unknown desc = failed to setup network for sandbox &quot;d29b1497142a7abc46e714001f183bed8e68798a5b5f2b559afd9e2eff17c377&quot;: plugin type=&quot;bridge&quot; failed (add): incompatible CNI versions; config is &quot;1.0.0&quot;, plugin supports [&quot;0.1.0&quot; &quot;0.2.0&quot; &quot;0.3.0&quot; &quot;0.3.1&quot; &quot;0.4.0&quot;]
  Warning  FailedCreatePodSandBox  2m17s             kubelet            Failed to create pod sandbox: rpc error: code = Unknown desc = failed to setup network for sandbox &quot;862a82892c68397ae7df7d0c410bda7b46522c79c1b9eb61a1ef575d4d09e0a9&quot;: plugin type=&quot;bridge&quot; failed (add): incompatible CNI versions; config is &quot;1.0.0&quot;, plugin supports [&quot;0.1.0&quot; &quot;0.2.0&quot; &quot;0.3.0&quot; &quot;0.3.1&quot; &quot;0.4.0&quot;]
  Warning  FailedCreatePodSandBox  2m2s              kubelet            Failed to create pod sandbox: rpc error: code = Unknown desc = failed to setup network for sandbox &quot;03000265ca15443c0b571152f97d5e4f95f67437dfe72bc0cd18bc9132f181cd&quot;: plugin type=&quot;bridge&quot; failed (add): incompatible CNI versions; config is &quot;1.0.0&quot;, plugin supports [&quot;0.1.0&quot; &quot;0.2.0&quot; &quot;0.3.0&quot; &quot;0.3.1&quot; &quot;0.4.0&quot;]
  Warning  FailedCreatePodSandBox  107s              kubelet            Failed to create pod sandbox: rpc error: code = Unknown desc = failed to setup network for sandbox &quot;5a02ac5807e58b6aa7c0fac1d807533ff61f3bd223600e5d5177f96a22f9253b&quot;: plugin type=&quot;bridge&quot; failed (add): incompatible CNI versions; config is &quot;1.0.0&quot;, plugin supports [&quot;0.1.0&quot; &quot;0.2.0&quot; &quot;0.3.0&quot; &quot;0.3.1&quot; &quot;0.4.0&quot;]
  Warning  FailedCreatePodSandBox  95s               kubelet            Failed to create pod sandbox: rpc error: code = Unknown desc = failed to setup network for sandbox &quot;7d15145fc5d4041d923824915f5f0bb0090e8e9e4e86cd91a2fa94b11b69e18c&quot;: plugin type=&quot;bridge&quot; failed (add): incompatible CNI versions; config is &quot;1.0.0&quot;, plugin supports [&quot;0.1.0&quot; &quot;0.2.0&quot; &quot;0.3.0&quot; &quot;0.3.1&quot; &quot;0.4.0&quot;]
  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 &quot;4d72686240042e4764d3475e8a2aeeeef08f2b20025e58ca4e1860c628ca42bc&quot;: plugin type=&quot;bridge&quot; failed (add): incompatible CNI versions; config is &quot;1.0.0&quot;, plugin supports [&quot;0.1.0&quot; &quot;0.2.0&quot; &quot;0.3.0&quot; &quot;0.3.1&quot; &quot;0.4.0&quot;]
</code></pre>
<p>I'm using flannel as my CNI plugin. I got this error before on my coredns pods too when I was using weave net. The Kubernetes website (<a href="https://kubernetes.io/docs/concepts/extend-kubernetes/compute-storage-net/network-plugins/" rel="nofollow noreferrer">https://kubernetes.io/docs/concepts/extend-kubernetes/compute-storage-net/network-plugins/</a>) says they only support v0.4.0 of the CNI specification, so I'm not sure why it's trying to use v1.0.0 or how I would go about changing that.</p>

Matthew Tromp
<p>So I fixed it, somehow. My master node was running CRI-O while my workers were using containerd. To fix this I had to uninstall containerd from the workers, install CRI-O and podman onto all of them, and then I had a separate issue where kubelet kept trying to use docker even though I uninstalled docker, which I fixed by uninstalling kubelet, removing all of its related files with <code>rm -rf (find / *kubelet*)</code> (probably not the safest way of doing that) and reinstalling it. Then when I used kubeadm to remake the cluster everything worked for some reason</p>
