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:
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"]
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 (https://kubernetes.io/docs/concepts/extend-kubernetes/compute-storage-net/network-plugins/) 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.