Automatic label assigning for new node in Cluster auto scaling

Vignesh Murugan 126 Reputation points

Hi All,

Good day!

We are working with AKS clusters. We would like to enable cluster autoscaling on AKS. We have set some labels on existing node inorder to host the pods(e.g node1 having label as app=web). Now the question is, incase of an additional node gets added to the cluster let say due to high memory utilization will it come up with the same label we set it for other existing nodes in the cluster?
If so, do we have to setup anything or it will invoke automatically.

Thanks in advance.

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,945 questions
0 comments No comments
{count} votes

Accepted answer
  1. SUNOJ KUMAR YELURU 14,011 Reputation points MVP

    Hi @Vignesh Murugan

    You can also add labels to a node pool during node pool creation. Labels set at the node pool are added to each node in the node pool. These labels are visible in Kubernetes for handling scheduling rules for nodes.
    If the node pool is autoscaled all nodes subsequently added will be the same labels and pods with affinity or node selectors defined should not have any issues being scheduled.
    more details

    You can apply an Azure tag to node pools in your AKS cluster. Tags applied to a node pool are applied to each node within the node pool and are persisted through upgrades. Tags are also applied to new nodes added to a node pool during scale-out operations. Adding a tag can help with tasks such as policy tracking or cost estimation.

    If the Answer is helpful, please click Accept Answer and up-vote, so that it can help others in the community looking for help on similar topics.

0 additional answers

Sort by: Most helpful