An AKS node pool needs a different VM size. What's the safe way?
IntermediateScenarioAKS and Containers
Answer
Situation read → VM size is mostly immutable on a pool; add a new pool and migrate.
What I'd do →
- Add a new pool with the target size, same labels/taints, across zones
- Cordon old nodes:
kubectl cordon -l agentpool=apps - Drain gradually:
kubectl drain <node> --ignore-daemonsets --delete-emptydir-data, respecting PDBs - Verify pods are healthy on the new pool, then
az aks nodepool delete -n apps - For the default/system pool in Terraform, set
temporary_name_for_rotationand let azurerm rotate it
Why → Workloads move gradually with PDB protection; no in-place risk.
Interview tip → Newer AKS supports resizing some pools in place, but the add-and-migrate pattern works everywhere.
More on AKS and Containers
You're asked to build a production AKS cluster. Walk through your key decisions.IntermediateA team wants to deploy a new microservice to AKS that reads a database password. How do you wire secrets?BeginnerYou need to upgrade a production AKS cluster from 1.31 to 1.33. Plan it.AdvancedPods need to scale on Service Bus queue length, not CPU. How?AdvancedYou need to run a GPU workload on an existing AKS cluster. What do you do?IntermediateA noisy application keeps starving other workloads on shared nodes. How do you fix it?Beginner