mirror of https://github.com/kubernetes/kops.git
aws: Don't set MACAddressPolicy=none for Ubuntu 24.04 with VPC CNI
This commit is contained in:
parent
bf9d2fa37a
commit
453fc6de93
|
@ -65,10 +65,10 @@ ManageForeignRoutingPolicyRules=no
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
// Running Amazon VPC CNI on Ubuntu 22.04 and later or any version of al2023 requires
|
// Running Amazon VPC CNI on Ubuntu 22.04 or any version of al2023 requires
|
||||||
// setting MACAddressPolicy to `none` (ref: https://github.com/aws/amazon-vpc-cni-k8s/issues/2103
|
// setting MACAddressPolicy to `none` (ref: https://github.com/aws/amazon-vpc-cni-k8s/issues/2103
|
||||||
// & https://github.com/kubernetes/kops/issues/16255)
|
// & https://github.com/kubernetes/kops/issues/16255)
|
||||||
if (b.Distribution.IsUbuntu() && b.Distribution.Version() >= 22.04) ||
|
if (b.Distribution.IsUbuntu() && b.Distribution.Version() == 22.04) ||
|
||||||
b.Distribution == distributions.DistributionAmazonLinux2023 {
|
b.Distribution == distributions.DistributionAmazonLinux2023 {
|
||||||
contents := `
|
contents := `
|
||||||
[Match]
|
[Match]
|
||||||
|
|
Loading…
Reference in New Issue