Open michaelmdresser opened 2 years ago
See current behavior in turndown for reference, "Resize all the non-autoscaling node pools to 0":
Hi @michaelmdresser i want to work on this issue.
Hi @Ayush9026, you're welcome to investigate this behavior and open a pull request! I'll just warn you that we'll ask for thorough testing before we're willing to approve and merge. I think this issue's description is fairly thorough and provides at least a lead in to the code. Thanks for your interest.
If a cloud provider (GKE, EKS) autoscaler is present on node pools, turndown currently evicts pods and then relies on the autoscaler to reduce the node count. However, sometimes autoscaler parameters may be set with a too-high minimum node count, resulting in smaller than expected savings during turndown. This is a request to add an option to
turndownschedules.kubecost.com
to force turndown to behave like it does if an autoscaler isn't present.This could be achieved by (1) modifying the minimum node count or (2) removing the autoscaling node pool entirely during turndown and recreating it on turnup.