Unable to create node lables for nodepools in azure AKS

8/28/2019

I want to create labels for each node under a nodepool , but i dont find this option in azure cli , can someone help me with this?

Expected : Must be able to label nodepools which can help in autoscaling and pod scheduling.

-- Sai Prasanth
azure
azure-aks
docker
kubernetes

1 Answer

8/28/2019

Adding labels is a feature that is still in progress (tracked here: https://github.com/Azure/AKS/issues/1088).

However, you can add Taints using ARM: https://docs.microsoft.com/en-us/rest/api/aks/agentpools/createorupdate#examples or Terraform: https://www.terraform.io/docs/providers/azurerm/r/kubernetes_cluster.html#node_taints (looks like the CLI still lacks the functionality).

-- Alessandro Vozza
Source: StackOverflow