aws-eks: spot interrupt handler for ASG capacity is incompatible with latest/support EKS versions #33108
Labels
@aws-cdk/aws-eks
Related to Amazon Elastic Kubernetes Service
bug
This issue is a bug.
effort/medium
Medium work item – several days of effort
p1
Describe the bug
Cluster provisioning fails when spot interrupt handler is set to true and ASG capacity is used with the latest Kubernetes versions.
Created a simple cluster with EKS Blueprints for CDK and used ASG capacity provider.
CDK code is using
cluster.addAutoScalingGroupCapacity
with spotInterruptHandler set totrue
(default setting).Getting the following exception:
Similar results when setting Kubernetes version to 1.29 and 1.30.
Narrowed down to this code: https://github.com/aws/aws-cdk/blob/main/packages/aws-cdk-lib/aws-eks/lib/cluster.ts#L1163-L1176
Why is helm chart version hardcoded?
Regression Issue
Last Known Working CDK Version
No response
Expected Behavior
Cluster provisioned with ASG capacity and spot interrupt handler installed.
Current Behavior
CFN provisioning failed with the exception described in the body of the issue.
Reproduction Steps
Created a simple cluster with EKS Blueprints for CDK and used ASG capacity provider.
CDK code is using
cluster.addAutoScalingGroupCapacity
with spotInterruptHandler set totrue
(default setting).Possible Solution
maintain a map of chart versions for node termination handler that are supported by the latest Kubernetes/EKS versions or allow customers to pass the version (less preferred).
Additional Information/Context
Potential workaround is to disable spot interrupt handler and install node termination helm chart with the correct helm chart version, e.g.
CDK CLI Version
2.173.4
Framework Version
No response
Node.js Version
20.10
OS
MacOS
Language
TypeScript
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: