Interview Prep/Azure/AKS and ACR

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
Azure All Azure questions Roadmap: AKS & Azure DevOps

More on AKS and ACR