-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Add support to fallback from ENI PD if subnet is out of /28 prefixes #20822
Conversation
014f62f
to
2ae9cbe
Compare
2ae9cbe
to
1d8cdd8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
cf00cf4
to
3297552
Compare
/test Job 'Cilium-PR-K8s-1.24-kernel-net-next' failed: Click to show.Test Name
Failure Output
If it is a flake and a GitHub issue doesn't already exist to track it, comment |
3297552
to
da0237f
Compare
@hemanthmalla Could you rebase the PR? I believe some of the build failures were already fixed in master branch. |
da0237f
to
d73cf4b
Compare
@aanm build seems to have failed again ? |
Yep looks like a known failure: #21145 |
/test Job 'Cilium-PR-K8s-1.16-kernel-4.9' failed: Click to show.Test Name
Failure Output
If it is a flake and a GitHub issue doesn't already exist to track it, comment |
Rebasing again to include changes from #21220 |
When a subnet is very fragmented, there might not be enough free contiguous IPs to make up a /28 block. Without this fallback, new node creation would be blocked when PD is enabled and subnet is in this state. Currently operator does not support PD in mixed mode. Once a node has secondary IP addresses attached on the ENI, operator will not attempt to allocate any more prefixes. Signed-off-by: Hemanth Malla <hemanth.malla@datadoghq.com>
d73cf4b
to
09512fa
Compare
/test |
When a subnet is very fragmented, there might not be enough free
contiguous IPs to make up a
/28
block. Without this fallback, new nodecreation would be blocked when PD is enabled and subnet is in this
state. Currently operator does not support PD in mixed mode. Once a node
has secondary IP addresses attached on the ENI, operator will not attempt
to allocate any more prefixes.
With this fallback, operator will try to provision new nodes with prefix delegation
enabled. If a subnet doesn't have
/28
blocks available, regular/32
IPs wouldbe allocated instead.
AWS VPC CNI plugin uses
v1
ofaws-sdk-go
and has better error handling.Out of capacity errors are logged in VPC CNI plugin, but it does not seem to have
any fallback.