scaledown the nodes in aks cluster

Prem Jha 6 Reputation points
2022-07-07T10:37:29.297+00:00

i am running a job in my AKS cluster with two node pools : user and system node pool
i also want to scale down the user node pool to zero(0) after my job is completed.

what i did:

1) i enabled the cluster-autoscaler and the node is scaling up.

problem :

1) the node is not scaling down to zero because the job is still active (seeking azure queue storage for next triggers).
2) when i delete the completed job manually then only the node is scaling down to zero. but my requirement is not to do manual task here i want that the job will schedule to the system node once completed and the again come back to user node when it receives triggers.

please suggest me some way through which i can achieve that.

Azure Kubernetes Service (AKS)
Azure Kubernetes Service (AKS)
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
1,791 questions
{count} votes

1 answer

Sort by: Most helpful
  1. deherman-MSFT 32,156 Reputation points Microsoft Employee
    2022-07-11T18:11:30.493+00:00

    @Prem Jha
    There are some reasons that can prevent Cluster Autoscaler from removing nodes. Can you verify if any of these apply to your cluster?
    219529-image.png

    Let me know if this is not the case and we will be happy to work with you further to investigate.

    -------------------------------

    Please don’t forget to "Accept the answer" and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

    0 comments No comments