-
Notifications
You must be signed in to change notification settings - Fork 39.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
Updating kubenet for CNI with IPv6 #52180
Conversation
Hi @rpothier. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
/sig network |
/ok-to-test |
Maybe wait a while for #51250? |
@feiskyer Thanks for the review, waiting is one option, but I was hoping that this change |
code freeze now, even without #51250, we still need to wait the queue reopen. |
"type": "host-local", | ||
"ranges": [ | ||
{ | ||
"subnet": "10.1.0.0/24", |
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.
Why do we bother with IPv4 when we want IPv6? or do you intend to do dual-stack here? If we really want dual-stack, then we should plumb that through and not use a fake static IPv4 address.
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.
If the question is compatibility, since the JSON is now 0.3.0, that's not going to be compatible with some of the CNI binaries out there already. To be fully compatible, you'd want to run a VERSION request on the bridge plugin to see what it supports, and then based on the returned array select the correct configuration JSON.
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.
@dcbw Thanks for the review. I will remove the IPv4.
Thanks for the suggestion on the VERSION, this seems cleaner, however, the problem I ran into is that with CNI version 0.6.0, the CNI spec version remained at 1.3.1, same as the previous. Is there some way we can detect the release version? If not is there a way to update CNI to output the release version?
02397b3
to
857f998
Compare
@@ -235,6 +235,27 @@ const NET_CONFIG_TEMPLATE = `{ | |||
} | |||
}` | |||
|
|||
const NET_CONFIG_TEMPLATE_V6 = `{ | |||
"cniVersion": "0.3.0", |
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.
nit: should be 0.3.1
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, will update
857f998
to
68c8538
Compare
Now that CNI 0.60 has been merged, is this PR still relevant? |
@bowei I think it is still relevant as the template needs to be updated for IPv6 |
68c8538
to
6950136
Compare
/test pull-kubernetes-unit |
/retest |
CNI has been updated with IPv6, and these changes allow kubenet to use IPv6 with the latest CNI.
6950136
to
b65ce73
Compare
xref pod latency due to dad: #55247 |
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.
ping @kubernetes/sig-network-pr-reviews
/assign @thockin
for approval
/lgtm |
/retest |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: bowei, rpothier Assign the PR to them by writing Associated issue: 52179 The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these OWNERS Files:
You can indicate your approval by writing |
/retest |
Assign back to me once it is ready for review/approval. |
/test pull-kubernetes-e2e-gce |
@dcbw do you mind updating your review? |
/retest |
@rpothier: The following tests failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
This PR is superseded by #56245. |
CNI has been updated with IPv6, and these changes allow
kubenet to use IPv6 with the latest CNI.
What this PR does / why we need it:
This updated the config sent to CNI to allow for using IPv6 with the latest CNI.
Which issue this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close that issue when PR gets merged): fixes #52179Special notes for your reviewer:
Release note: