Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
how to change PODcidr on specifiec nodes Kubernetes #87150
I have setup a kubernete cluster with kubeadm in baremetal.
the cluster works well.
Next I connected some workers nodes.
But for some reason other IP addresses of Pods were assigned.
now when you deploy a service, if it is installed on one of these new nodes, errors appear.
Error - "NetworkPlugin cni failed to set up pod"
I don’t want to do init (kubeadm init --pod-network-cidr= )for obvious reasons, I'm afraid to break everything
Im using Calico as CNI plugin
the kubelet allows you to pass
on the workers you can have a look at the file
Thx for feedback!
The CIDR to use for pod IP addresses, only used in standalone mode. In cluster mode, this is obtained from the master. I got cluster in my case.
Im on Centos 7. And my /etc/default contains only : grub, nss, useradd
i forgot about this detail. then i don't think there is a way to set this per node.