Skip to content
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

(managedNodeGroups): ( graviton amiType: eks.NodegroupAmiType.AL2023_ARM_64_STANDARD not supported) #1006

Open
awsdataarchitect opened this issue May 27, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@awsdataarchitect
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant