Set MACAddressPolicy=none for Ubuntu 24.04

This commit is contained in:
Peter Rifel 2025-05-07 22:24:03 -05:00
parent 95a8b25aa4
commit 2fd76e34bb
No known key found for this signature in database
1 changed files with 3 additions and 2 deletions

View File

@ -65,10 +65,11 @@ ManageForeignRoutingPolicyRules=no
})
}
// Running Amazon VPC CNI on Ubuntu 22.04 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
// & https://github.com/aws/amazon-vpc-cni-k8s/issues/2839
// & 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 {
contents := `
[Match]