-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Allow assign-macvlan annotation to specify an interface #17334
Allow assign-macvlan annotation to specify an interface #17334
Conversation
Wow. Thanks for the rapid turn-around! My only concern is that the interface name may not be consistent across all nodes of the cluster. Is that a safe assumption to make? Or are you expected to limit these only to the nodes with the right name (if so we just need to make that very clear in the docs). |
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.
Code looks good to me.
/test all |
The customer suggested this feature themselves, so... Yes, you'd have to make sure to only schedule the pod on nodes that have an interface with the given name. But you already have to be careful to only schedule the pod on nodes that are on the right subnet for the pod's EGRESS_SOURCE. (We could change things so that you can specify an IP address for the macvlan as an annotation, and have OpenShift find the right interface for that IP. But that would be a much larger change.) |
/retest |
1 similar comment
/retest |
LGTM. We can always use an IP address or subnet later if that proves useful. |
/retest |
1 similar comment
/retest |
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.
Need docs update
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: danwinship, pravisankar 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 |
/retest Please review the full test history for this PR and help us cut down flakes. |
/test all [submit-queue is verifying that this PR is safe to merge] |
Automatic merge from submit-queue (batch tested with PRs 17335, 17334, 17372). |
@danwinship: 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. |
/cherrypick release-3.7 |
@danwinship: New pull request created: #17383 In response to this:
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. |
If the
assign-macvlan
interface is a string other than "true", assume that it's the name of a network interface and hang the macvlan off that rather than the default interface. This lets you egress-route out a non-default interface (without forcing OpenShift itself to parse theEGRESS_SOURCE
environment variable in the pod definition).Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1513764. Needs to be backported to 3.7 and 3.6 quickly for a customer, so we went with a simple solution here.
@openshift/networking PTAL