You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Starting with Kubernetes version 1.30 or newer, any newly created managed node groups will automatically default to using AL2023 as the node operating system https://aws.amazon.com/about-aws/whats-new/2024/05/amazon-eks-distro-kubernetes-version-1-30/
However when passing amiType: eks.NodegroupAmiType.AL2023_ARM_64_STANDARD I get the Error: The specified AMI does not match the instance types architecture, either specify one of AL2_ARM_64, BOTTLEROCKET_ARM_64 or don't specify any at new Nodegroup
Expected Behavior
Should allow the AL2023 as per the AWS release notes. Currently only 2 supported either specify one of AL2_ARM_64, BOTTLEROCKET_ARM_64 for graviton
Current Behavior
Error: The specified AMI does not match the instance types architecture, either specify one of AL2_ARM_64, BOTTLEROCKET_ARM_64 or don't specify any
at new Nodegroup (/Users/vivekvelso/Documents/opensource/mario-eks-app-cdk/node_modules/aws-cdk-lib/aws-eks/lib/managed-nodegroup.js:1:3921)
at Cluster.addNodegroupCapacity (/Users/vivekvelso/Documents/opensource/mario-eks-app-cdk/node_modules/aws-cdk-lib/aws-eks/lib/cluster.js:1:19807)
at GenericClusterProvider.addManagedNodeGroup (/Users/vivekvelso/Documents/opensource/mario-eks-app-cdk/node_modules/@aws-quickstart/eks-blueprints/lib/cluster-providers/generic-cluster-provider.ts:420:32)
at /Users/vivekvelso/Documents/opensource/mario-eks-app-cdk/node_modules/@aws-quickstart/eks-blueprints/lib/cluster-providers/generic-cluster-provider.ts:292:36
at Array.forEach ()
at GenericClusterProvider.createCluster (/Users/vivekvelso/Documents/opensource/mario-eks-app-cdk/node_modules/@aws-quickstart/eks-blueprints/lib/cluster-providers/generic-cluster-provider.ts:291:39)
at new EksBlueprint (/Users/vivekvelso/Documents/opensource/mario-eks-app-cdk/node_modules/@aws-quickstart/eks-blueprints/lib/stacks/eks-blueprint-stack.ts:259:44)
at BlueprintBuilder.build (/Users/vivekvelso/Documents/opensource/mario-eks-app-cdk/node_modules/@aws-quickstart/eks-blueprints/lib/stacks/eks-blueprint-stack.ts:204:16)
at new MarioStack (/Users/vivekvelso/Documents/opensource/mario-eks-app-cdk/lib/mario-eks-stack.ts:78:6)
at Object. (/Users/vivekvelso/Documents/opensource/mario-eks-app-cdk/bin/mario-eks.ts:19:18)
Describe the bug
Starting with Kubernetes version 1.30 or newer, any newly created managed node groups will automatically default to using AL2023 as the node operating system https://aws.amazon.com/about-aws/whats-new/2024/05/amazon-eks-distro-kubernetes-version-1-30/
However when passing amiType: eks.NodegroupAmiType.AL2023_ARM_64_STANDARD I get the Error: The specified AMI does not match the instance types architecture, either specify one of AL2_ARM_64, BOTTLEROCKET_ARM_64 or don't specify any at new Nodegroup
Expected Behavior
Should allow the AL2023 as per the AWS release notes. Currently only 2 supported either specify one of AL2_ARM_64, BOTTLEROCKET_ARM_64 for graviton
Current Behavior
Error: The specified AMI does not match the instance types architecture, either specify one of AL2_ARM_64, BOTTLEROCKET_ARM_64 or don't specify any
at new Nodegroup (/Users/vivekvelso/Documents/opensource/mario-eks-app-cdk/node_modules/aws-cdk-lib/aws-eks/lib/managed-nodegroup.js:1:3921)
at Cluster.addNodegroupCapacity (/Users/vivekvelso/Documents/opensource/mario-eks-app-cdk/node_modules/aws-cdk-lib/aws-eks/lib/cluster.js:1:19807)
at GenericClusterProvider.addManagedNodeGroup (/Users/vivekvelso/Documents/opensource/mario-eks-app-cdk/node_modules/@aws-quickstart/eks-blueprints/lib/cluster-providers/generic-cluster-provider.ts:420:32)
at /Users/vivekvelso/Documents/opensource/mario-eks-app-cdk/node_modules/@aws-quickstart/eks-blueprints/lib/cluster-providers/generic-cluster-provider.ts:292:36
at Array.forEach ()
at GenericClusterProvider.createCluster (/Users/vivekvelso/Documents/opensource/mario-eks-app-cdk/node_modules/@aws-quickstart/eks-blueprints/lib/cluster-providers/generic-cluster-provider.ts:291:39)
at new EksBlueprint (/Users/vivekvelso/Documents/opensource/mario-eks-app-cdk/node_modules/@aws-quickstart/eks-blueprints/lib/stacks/eks-blueprint-stack.ts:259:44)
at BlueprintBuilder.build (/Users/vivekvelso/Documents/opensource/mario-eks-app-cdk/node_modules/@aws-quickstart/eks-blueprints/lib/stacks/eks-blueprint-stack.ts:204:16)
at new MarioStack (/Users/vivekvelso/Documents/opensource/mario-eks-app-cdk/lib/mario-eks-stack.ts:78:6)
at Object. (/Users/vivekvelso/Documents/opensource/mario-eks-app-cdk/bin/mario-eks.ts:19:18)
Reproduction Steps
managedNodeGroups: [{
id: 'mng2-launchtemplate',
instanceTypes: [new ec2.InstanceType(workerSpotInstanceType)],
amiType: eks.NodegroupAmiType.AL2023_ARM_64_STANDARD,// AL2_X86_64,
nodeGroupCapacityType: eks.CapacityType.SPOT,
desiredSize: 1,
minSize: 0,
maxSize: 1,
nodeGroupSubnets: { subnetType: ec2.SubnetType.PUBLIC },
}
],
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.133.0 (build dcc1e75)
EKS Blueprints Version
1.14.1
Node.js Version
v20.11.0
Environment details (OS name and version, etc.)
macOS 14.4 Beta (23E5196e)
Other information
No response
The text was updated successfully, but these errors were encountered: