azure-cli
azure-cli copied to clipboard
az aks nodepool update can update taints, docs could use this detail
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
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
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
Added taint post creation
az aks nodepool update --cluster-name christiancluster --resource-group christiancluster_group --name taintnp2 --node-taints key1=value1:NoSchedule
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
- ID: 39fce7ab-ab56-44c6-b9a8-405444247a0b
- Version Independent ID: dabbb6c6-c616-a6ec-61f6-1b9d3bb069e8
- Content: az aks nodepool
- Content Source: latest/docs-ref-autogen/aks/nodepool.yml
- GitHub Login: @rloutlaw
- Microsoft Alias: routlaw
route to CXP team
@christianag54 Thanks for reaching out to us and reporting this issue. We are looking into this issue and we will provide an update.
The above PR has been created and it is currently pending under review.