aws_eks: Cluster Name generation can cause inability to create BottleRocket clusters #32299
Labels
@aws-cdk/aws-eks
Related to Amazon Elastic Kubernetes Service
bug
This issue is a bug.
needs-triage
This issue or PR still needs to be triaged.
Describe the bug
When supplying a cluster name that is not Kubernetes label compliant, bottlerocket nodes are unable to join the cluster and the cdk deployment fails.
Regression Issue
Last Known Working CDK Version
No response
Expected Behavior
Cluster can properly handle bottlerocket nodes
Current Behavior
Error from Ec2 system logs:
Reproduction Steps
Create a cluster with either no name or a name like the one provided above (which was cdk generated)
Create user data for bottlerocket and add it to a launch template, add nodegroup capacity
In theory, you could skip all the launch template stuff and just try to pass the bottlerocket ami type to the nodegroup via options directly, this is just how I did it so I could set userData settings.
Possible Solution
generate cluster names in all lowercase, potentially truncate for very large cluster names
Additional Information/Context
No response
CDK CLI Version
2.170.0
Framework Version
No response
Node.js Version
18.20.4
OS
Mac
Language
TypeScript
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: