scaledown the nodes in aks cluster

Prem Jha 6 Reputation points

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

    @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?

    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