How to reduce the EKS node group based on time

0

As a part of cost optimization activity, we need to reduce the (Non-prod) EKS node desired size to zero at non business hours. our env is static, there is no sudden peak usage on application. We don't want to use karpenter for this activity..

2 Answers
2

Hi, You can set the Auto-Scaling Group configuration to adjust the nodes based on the scheduled time. https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-scheduled-scaling.html

Steven
answered 3 months ago
1
Accepted Answer

EKS managed have their own launch template and autoscaling group, So we can create the scheduled autoscaling group to perform resize the node group at particular time. Need to configure both desired size - 0 and required on the scheduled actions.

Configure event notification with sns for the email notification.

https://repost.aws/knowledge-center/auto-scaling-use-scheduled-actions

https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-scheduled-scaling.html

https://ec2spotworkshops.com/running-amazon-ec2-workloads-at-scale/scale_scheduled.html

answered 3 months ago
profile pictureAWS
EXPERT
reviewed 3 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions