-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pod cidr not assgned #728
Comments
What do you mean by
Flannel needs to fetch the |
for some reason that one node isn't working. I did a: then rebooted the node to ensure it wasn't carrying any state in k8s so it would retry to register the node to see if it woudl get a new pod network configured to fix the issue. it didn't help. doing a diff between a working node and the non working one shows:
+Annotations: flannel.alpha.coreos.com/backend-data={"VtepMAC":"e2:a9:8b:50:dc:eb"}
flannel annotations are not being added to the broken node. I'm not sure if thats relevant or not. How does flannel acquire an ip range when using the k8s manager? |
I'm facing the same issue with Kubernetes 1.6.4 (kubeadm). Applied the files below: https://raw.githubusercontent.com/coreos/flannel/master/Documentation/kube-flannel-rbac.yml
|
@kfox1111 The node needs to have a podCidr. Can you check if it does - |
@gtirloni Did you see this note in the kubeadm docs
|
yes. not all nodes didn't get their allocations, only some nodes. that really seems like a bug to me. |
👍 You'll need to raise that with kubeadm team |
If some nodes get assigned a pod cidr but others not, is that a kubernetes issue or a kubeadm issue? I would think k8s itself maybe? |
or does flannel ask for a pod cidr to be allocated by the api server? |
try the blow,may be useful |
thanks |
kubeadm init --pod-network-cidr=10.244.0.0/16 |
This helped me. Also make sure to reload kubelet Hope it helps, I nearly went mad. |
Do not forget to update kube-proxy configmap as well: kubectl edit cm -n kube-system kube-proxy Set And also: kubectl edit cm -n kube-system kubeadm-config Set |
Seeing something strange. if I delete the node from k8s and reboot it, flannel fails to fully start, getting stuck in a loop:
E0519 00:37:28.550351 1 network.go:102] failed to register network: failed to acquire lease: node "k8s-test-2.novalocal" pod cidr not assigned
E0519 00:37:29.551107 1 network.go:102] failed to register network: failed to acquire lease: node "k8s-test-2.novalocal" pod cidr not assigned
E0519 00:37:30.551851 1 network.go:102] failed to register network: failed to acquire lease: node "k8s-test-2.novalocal" pod cidr not assigned
E0519 00:37:31.552629 1 network.go:102] failed to register network: failed to acquire lease: node "k8s-test-2.novalocal" pod cidr not assigned
E0519 00:37:32.553437 1 network.go:102] failed to register network: failed to acquire lease: node "k8s-test-2.novalocal" pod cidr not assigned
E0519 00:37:33.554245 1 network.go:102] failed to register network: failed to acquire lease: node "k8s-test-2.novalocal" pod cidr not assigned
I don't see the expected flannel annotations being added to the node either. all the other nodes in the system seem to work though. This is with the newest self hosted flannel in k8s 1.6.3
The text was updated successfully, but these errors were encountered: