- Newest
- Most votes
- Most comments
You can follow these steps to ensure that a newly created nodes are added to a specific node group during cluster autoscaling with karpenter in EKS
Assign unique labels to your existing node groups. You can do this during the creation of the node groups or by updating the existing ones.
Modify the Karpenter configuration to specify a node group selector. This selector will tell Karpenter which node group to target when provisioning new nodes.
Ensure that the Karpenter configuration includes the node group selector option and specifies the label of the desired node group.
After updating the Karpenter configuration, monitor the cluster autoscaling events and verify that new nodes are being added to the correct node group.
I think it will be more clearer to paste your yaml file here and cover the sensitive info or if you can follow the above steps i think everything should be ok
Why do you want the nodes to be added to a specific nodegroup ?
To begin with Karpenter is groupless autoscaling.
Karpenter brings scaling management closer to Kubernetes native APIs than do Autoscaling Groups (ASGs) and Managed Node Groups (MNGs). ASGs and MNGs are AWS-native abstractions where scaling is triggered based on AWS level metrics, such as EC2 CPU load. ASGs and MNGs are not needed since Karpenter is working directly with the EC2 fleet API.
Karpenter removes a layer of AWS abstraction to bring some of the flexibility directly into Kubernetes. Karpenter is best used for clusters with workloads that encounter periods of high, spiky demand or have diverse compute requirements. MNGs and ASGs are good for clusters running workloads that tend to be more static and consistent. You can use a mix of dynamically and statically managed nodes, depending on your requirements.
I hope this helps. For additional details on Karpenter, refer to the documentation https://karpenter.sh/docs/
Relevant content
- asked a year ago
- asked 3 years ago
- asked 9 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 7 months ago
- AWS OFFICIALUpdated 8 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated a day ago
Hi,
Unfortunately that I can't paste my yaml file into this because the comment was limit in 600 words. I still have stuck with this problem.