azure-cli icon indicating copy to clipboard operation
azure-cli copied to clipboard

az aks nodepool update can update taints, docs could use this detail

Open christianag54 opened this issue 2 years ago • 3 comments

The command has these options

az aks nodepool update --cluster-name --name --resource-group [--aks-custom-headers] [--disable-cluster-autoscaler] [--enable-cluster-autoscaler] [--labels] [--max-count] [--max-surge] [--min-count] [--mode {System, User}] [--no-wait] [--node-taints] [--scale-down-mode {Deallocate, Delete}] [--tags] [--update-cluster-autoscaler]

In the command description it could include a statement indicating the commands allows to update the node pool by adding a node taint (even if the node pool doesn’t have one already) or to update an existing taint.

I performed the following test, and it does work.

I have two node pools; one already has taint applied to it

image

I indeed can update the existing taint value

Executed az aks nodepool update --cluster-name christiancluster --resource-group christiancluster_group --name taintnp --node-taints key2=value2:NoSchedule

Result

image

I can also add a taint to an existing node pool with no taint

Added node pool az aks nodepool add --resource-group christiancluster_group --cluster-name christiancluster --name taintnp2 --no-wait

image

Added taint post creation

az aks nodepool update --cluster-name christiancluster --resource-group christiancluster_group --name taintnp2 --node-taints key1=value1:NoSchedule

image


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

christianag54 avatar Aug 11 '22 16:08 christianag54

route to CXP team

yonzhan avatar Aug 11 '22 23:08 yonzhan

@christianag54 Thanks for reaching out to us and reporting this issue. We are looking into this issue and we will provide an update.

navba-MSFT avatar Aug 12 '22 03:08 navba-MSFT

The above PR has been created and it is currently pending under review.

navba-MSFT avatar Aug 12 '22 06:08 navba-MSFT