atlassian / escalator

Escalator is a batch or job optimized horizontal autoscaler for Kubernetes
Apache License 2.0
646 stars 58 forks source link

[Feature Request] Add ability to remove nodes older than a certain amount of time #239

Closed awprice closed 3 months ago

awprice commented 4 months ago

Is your feature request related to a problem? Please describe. We have a number of node groups that receive a small amount of load and not enough to warrant more than 1 instance. As a result, the node in these node groups stay around in the cluster for a long time and do not receive AMI/launch template/security updates.

Describe the solution you'd like Have Escalator remove old nodes automatically when the age of them exceeds a pre-configured value.

Describe alternatives you've considered We normally resolve this by bumping the ASG desired size to a larger number to bring up new nodes and for Escalator to terminate the nodes as they are the oldest.

Additional context N/A