I'm running kubernetes with the supposed pod network cidr of Everything seems to agree with that:

# history | grep kubeadm
kubeadm init --control-plane-endpoint "guide:6443" --upload-certs --pod-network-cidr=

$ kubectl get nodes -o kubectl get nodes -o jsonpath='{.items[*].spec.podCIDR}'

# cat /run/flannel/subnet.env 

However all the pods I create get IPs in the range.

$ kubectl get pods -o wide
NAME                                   READY   STATUS             RESTARTS   AGE   IP            NODE         NOMINATED NODE   READINESS GATES
busybox1                               1/1     Running            1          13m   k8s-node-1   <none>           <none>
debain-shell-547f8fc54b-v8p99          0/1     ImagePullBackOff   0          27m    k8s-node-1   <none>           <none>
nginx-deployment-ex-54f57cf6bf-k55nn   1/1     Running            1          27m    k8s-node-1   <none>           <none>
nginx-deployment-ex-54f57cf6bf-q2khx   1/1     Running            1          27m    k8s-node-1   <none>           <none>
nginx-deployment-ex-54f57cf6bf-r8b7v   1/1     Running            1          27m    k8s-node-1   <none>           <none>

I can't talk to coredns (which is how I found this condition) and I can't seem to use my ingress service anymore (though I've restarted enough things by now I may have just temporarily broken that).

What is causing this, or alternatively, where should I look for more info?

1 Answer 1


This was caused by missing --network-plugin=cni on the end of kubelet. Added that to the args and it all works now.

  • Hello Alex. I am facing exactly same issue in my cluster. Same range of unexpected CIDR is used for IP allocation. Can you share some detail how did you pass --network-plugin=cni in kubelet. I install kubelet by apt-get install kubelet. I am new to kubernetes. Thanks in advance.
    – Mufazzal
    May 21, 2022 at 6:49
  • Sorry, I don't check my account often. I'm on gentoo and there it's in the /etc/conf.d/kubelet file. However I'm pretty sure it's not going to be the same on a debian based distro, sorry (esp to anyone else who comes across this). Oct 26 at 20:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.