What do `max-surge`, `max-unavailable` and drain timeout control during upgrades?
AdvancedConceptAKS and ACR
Answer
--max-surge(default 10% on newer API versions, or 1 node): how many extra nodes AKS adds during the upgrade. Higher means faster upgrades, more temporary cost and quota.--max-unavailable: alternatively, upgrade nodes in place without surge (useful when quota or IPs are tight), at the cost of capacity during upgrade.--drain-timeout(minutes): how long AKS waits for pod eviction per node before failing; blocked by strict PDBs.--node-soak-duration: wait time between draining a node and moving to the next, to let workloads settle.
az aks nodepool update -g rg --cluster-name aks -n apps \
--max-surge 33% --drain-timeout 45 --node-soak-duration 5
More on AKS and ACR
What does Microsoft manage in AKS and what do you manage?BeginnerWhat is the difference between system and user node pools?BeginnerCompare the AKS networking options: kubenet, Azure CNI, Azure CNI Overlay, Azure CNI Powered by Cilium.AdvancedHow many IPs does an AKS subnet need with flat Azure CNI vs Overlay?AdvancedWhat are the AKS tiers (Free, Standard, Premium)?IntermediateHow do AKS Kubernetes version upgrades work?Intermediate