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 Antworten
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
beantwortet vor 4 Monaten
1
Akzeptierte Antwort

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

beantwortet vor 4 Monaten
profile pictureAWS
EXPERTE
überprüft vor 4 Monaten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen