Closed jdwil closed 1 year ago
@jdwil thanks for submitting the issue. AWS Node Termination Handler is only available for self-managed nodegroups on EKS. From your setup, you are using a default nodegroup, which is a managed nodegroup.
To deploy EKS Blueprints with self-managed nodegroup, please take a look here.
@youngjeong46 Why cdk-eks-blueprints does not support to use managed nodegroups to install NTH? if we don't use eks-blueprints and just launch EKS cluster and managed nodegroups, the NTH can be installed by using helm-chart
Furthermore, we cannot full control in The Auto Scaling Group Cluster Provider
through cdk-eks-blueprints such as instance capacity type - spot-instance
@jdwil you would vote for this ticket https://github.com/aws-quickstart/cdk-eks-blueprints/issues/392 if you're installing NTH
@youngjeong46 Thank you for the link. I will try switching to ASG as soon as I can. I still don't quite understand why this rule of not allowing NTH with MNG's is applicable when you're installing Karpenter. I have a managed node group, but karpenter scales the nodes and it does not use a node group. I'm very new to all this, so it's probably something obvious I'm missing.
@jdwil it is a good point with Karpenter. Initially there was no restriction with respect to the NTH. It was a separate issue raised against NTH and MNG to add it. We will review it and the easiest path seems to be just relax the constraint.
@youngjeong46 can we relax this constraint? I'm running into the same issue with a cluster that only runs Fargate+Karpenter.
@javydekoning
This has been resolved - NTH is supported for Karpenter up to v0.19, when native interruption handling is provided. Closing the issue.
Describe the bug
Not sure if this is a bug, or I'm just doing it wrong... but all the documentation I've read for Karpenter suggests using AWS Node Termination Handler to gracefully handle spot instance termination.
Expected Behavior
I'd expect an EKS cluster to be deployed with both Karpenter and AwsNodeTerminationHandler installed (along with the rest of my addons).
Current Behavior
Reproduction Steps
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.32.0
EKS Blueprints Version
1.1.0
Node.js Version
v16.13.2
Environment details (OS name and version, etc.)
Debian sid
Other information
Thanks in advance for any help on this.