Skip to content

Commit 4bfe8a5

Browse files
authored
Merge pull request #17933 from rifelpet/vpc-cni-al2023-2
Set MACAddressPolicy=none for AWS VPC CNI on AL2023
2 parents b37644c + 70806fc commit 4bfe8a5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nodeup/pkg/model/networking/amazon-vpc-routed-eni.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,11 @@ ManageForeignRoutingPolicyRules=no
6868
})
6969
}
7070

71-
// Running Amazon VPC CNI on Ubuntu 22.04+ requires
71+
// Running Amazon VPC CNI on Ubuntu 22.04+ and AL2023 requires
7272
// setting MACAddressPolicy to `none` (ref: https://github.com/aws/amazon-vpc-cni-k8s/issues/2103
7373
// & https://github.com/aws/amazon-vpc-cni-k8s/issues/2839
7474
// & https://github.com/kubernetes/kops/issues/16255)
75-
if b.Distribution.IsUbuntu() && b.Distribution.Version() >= 22.04 {
75+
if b.Distribution.IsUbuntu() && b.Distribution.Version() >= 22.04 || b.Distribution == distributions.DistributionAmazonLinux2023 {
7676
contents := `
7777
[Match]
7878
OriginalName=*

0 commit comments

Comments
 (0)