-
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
Calico allocate ip 10.254.0.0 to a pod #3825
Comments
No it's not, why do you say that? |
Network address and Broadcast address can't be node addresses. Network address is first address in the network and it is used for identification network segment. All the IP addresses, using the same network address part, are in the same network segment. Because network address is first address in the network, it can not be random IP address, but it must mach with network mask in a binary view, for last bits in the network address must be zeros, as long as mask has zeros. our cidr is set to 10.254.0.0/24, so 10.254.0.0 & 10.254.0.255 are invalid. |
Calico does /32 routing so, when you see a /24 or /26 route from Calico, it's actually an aggregate route for a group of /32s. /32s don't have broadcast or network addresses and we haven't come across any modern routers that can't handle that approach. Does it actually not work with your router? |
Yep, this question has been raised a few times before as well. See here: Also, here is the FAQ section on this: https://docs.projectcalico.org/reference/faq#can-calico-containers-use-any-ip-address-within-a-pool-even-subnet-networkbroadcast-addresses |
Thank you:) |
hello 我根据你这个流程在现有k8集群中创建calico, 《kubectl create -f https://docs.projectcalico.org/manifests/calico.yaml》不需要修改文件吗?我这样部署是有问题的,在启动pod时候提示cni 未认证? |
@zhutongcloud cni未认证?能提供一下具体的出错信息么? |
10.254.0.0 is an invalid ip address
Expected Behavior
allocate right ip address to pods.
Current Behavior
allocate invalid ip 10.254.0.0 to a pod
Possible Solution
Steps to Reproduce (for bugs)
Your Environment
The text was updated successfully, but these errors were encountered: