-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Pass native-routing-cidr to ENI CNI for route rules #10887
Conversation
Please set the appropriate release note label. |
test-me-please |
86537fe
to
c630113
Compare
test-me-please |
PTAL @tgraf |
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.
I was puzzled at first but assuming that the native-routing-cidr equals the CIDR of the VPC then this is correct.
test-me-please |
re-running CI since jenkins build was gone |
test-focus K8sServicesTest External services To Services first endpoint creation |
There's a conflict in plugins/cilium-cni/eni.go, could you rebase this PR on the current |
c630113
to
4394ddb
Compare
Rebased. 🎉 smaller change now 😀 |
test-me-please |
Thanks for the rebase, but it looks like there is a build error now 😢:
Please have a look. |
Sorry about that :( Just pushed up a fix. |
test-me-please |
Timed out. restart-ginkgo |
Sorry, one last thing. Could you please squash your fix commit with the one that failed to compile, before we merge? This is so that it does not break |
e4cb5c6
to
d7a279e
Compare
Squashed and force pushed. |
Thanks, but I'm afraid you squashed with the wrong commit :( I tried building with your first commit applied only, and it fails. Would you mind double-checking, please? |
Ohhh, I'll need to squash all 3 commits then |
d7a279e
to
81d41d7
Compare
Signed-off-by: John Watson <[email protected]>
81d41d7
to
4b47aa7
Compare
Squashed the original change with the rebase fix commits. confirmed cilium-cni does build. |
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.
All good this time, thank you!
When using a configured
native-routing-cidr
that encompasses the VPC subnet, due to using VPC Peering or similar, the Linux routing rules need to be configured to properly route back out the ENI which the IP is attached when masquerade is disabled.This PR adds
native-routing-cidr
to the IPAM CRD AllocationResult. In the ENI cilium-cni plugin it coalesces all returned CIDRs into the minimum set needed for the Linux routing rules.Signed-off-by: John Watson [email protected]