-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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 doesn't come up when pod cidr prefix is /24 #2102
Comments
/24 cidrs are valid. @kahou82 to see why a pod is stuck in ContainerCreating please run |
@ozdanborne I see the following error from calico node pod:
|
From the logs you pasted I believe you are using the Kubernetes API datastore, in that mode Kubernetes is responsible for allocating the podCIDR for each node. Are you specifying the pod cidr range to Kubernetes and have the flag set that will have it allocate CIDRs to the nodes? |
@tmjd I am using kubeadm and set --pod-network-cidr=192.168.224.0/24. Looks like pod-network-cidr will set both cluster-cidr and allocate-node-cidrs? |
@kahou82 I have the same problem as you and it appears to be originating from the fact that the control plane is assigning /24 networks to nodes. See: Azure/acs-engine#1573 (comment) But while now the "does not have podCIDR" issue is gone the pod is still crashing with the same error in
This is happening on both the master and a node that I joined. This are the last lines in the pod log:
I would be very grateful if anyone can provide more insight into what could be causing this or how we might be able to get access to more information about what is going on. |
Looks like the liveness probe is failing. Not sure, but might be because it's picking an IPv6 localhost while the node container is using IPv4? |
@caseydavenport I have rebuilt the master from scratch and replaced the
And after this the node enters a kill/start loop again. Ill dig around some more and open a new issue if I cant figure anything out as the problem I'm facing now seems unrelated to the original issue. Thanks for helping so far! |
Cool - I'll close this for now since we've gotten past the original issue. Do raise another if needed! |
My pod cannot come up when I config calico pod cidr with prefix /24 (I have tried different cidr such as 192.168.224.0/24, 192.168.0.0/24, etc)
Expected Behavior
I am not sure if a /24 is supported or not so I am not sure the expected behavior
Current Behavior
From the calico-node pod, I see the following error:
2018-08-06 23:01:08.025 [WARNING][69] node.go 224: Node kahou-tenant-test-3-worker312e336341 does not have podCIDR to use to calculate the IPIP Tunnel Address
2018-08-06 23:01:09.058 [INFO][67] health.go 150: Overall health summary=&health.HealthReport{Live:true, Ready:true}
2018-08-06 23:01:10.149 [WARNING][69] node.go 224: Node kahou-tenant-test-3-worker83211adf2c does not have podCIDR to use to calculate the IPIP Tunnel Address
2018-08-06 23:01:13.942 [INFO][67] health.go 150: Overall health summary=&health.HealthReport{Live:true, Ready:true}
Possible Solution
Steps to Reproduce (for bugs)
Context
Your Environment
The text was updated successfully, but these errors were encountered: