-
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
fix(nodeup): set MACAddressPolicy=none
when using AWS VPC CNI
#16313
fix(nodeup): set MACAddressPolicy=none
when using AWS VPC CNI
#16313
Conversation
Skipping CI for Draft Pull Request. |
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.
/test all
/test pull-kops-e2e-cni-amazonvpc-u2204 |
/cc @hakman |
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.
This is great progress. Thanks a lot @moshevayner!
Some minor issues, but it otherwise looks like this will fix AWS VPC CNI.
MACAddressPolicy
to none
when using AWS CNI and Ubuntu 22.04MACAddressPolicy
to none
when using AWS VPC CNI and Ubuntu 22.04
MACAddressPolicy
to none
when using AWS VPC CNI and Ubuntu 22.04MACAddressPolicy=none
when using AWS VPC CNI
4d827e2
to
22d6104
Compare
/test pull-kops-e2e-cni-amazonvpc-u2204 |
@hakman thanks for your comments/suggestions! |
// Running Amazon VPC CNI on Ubuntu 22.04 and later requires setting MACAddressPolicy to `none` (ref: https://github.com/aws/amazon-vpc-cni-k8s/issues/2103 & https://github.com/kubernetes/kops/issues/16255) | ||
if b.NodeupConfig.Networking.AmazonVPC != nil && b.Distribution.IsUbuntu() && b.Distribution.Version() >= 22.04 { |
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.
// Running Amazon VPC CNI on Ubuntu 22.04 and later requires setting MACAddressPolicy to `none` (ref: https://github.com/aws/amazon-vpc-cni-k8s/issues/2103 & https://github.com/kubernetes/kops/issues/16255) | |
if b.NodeupConfig.Networking.AmazonVPC != nil && b.Distribution.IsUbuntu() && b.Distribution.Version() >= 22.04 { | |
// Running on Ubuntu 22.04 and later requires setting MACAddressPolicy=none` | |
// Ref: https://github.com/aws/amazon-vpc-cni-k8s/issues/2103 & https://github.com/kubernetes/kops/issues/16255 | |
This should already be handled above | |
```suggestion | |
if b.Distribution.IsUbuntu() && b.Distribution.Version() >= 22.04 { |
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.
Ohhh right, good point. Thanks for catching that!
@moshevayner One small nit. Thanks for updating so fast. |
22d6104
to
1342fd1
Compare
/test pull-kops-e2e-cni-amazonvpc-u2204 |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: hakman The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
…-upstream-release-1.28 Automated cherry pick of #16313: fix(nodeup): set `MACAddressPolicy` to `none` when using AWS
What this PR does / why we need it:
Following suggestion in aws/amazon-vpc-cni-k8s#2103 to get Amazon VPC to work on Ubuntu 22.04
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):fixes #16255
fixes #15720
Special notes for your reviewer:
/cc @hakman