Interview Prep/Azure/AKS and ACR Errors

`(InsufficientSubnetSize) Pre-allocated IPs 682 exceeds IPs available 251 in Subnet Cidr 10.20.1.0/24` when scaling or upgrading AKS.

IntermediateTroubleshootingAKS and ACR Errors
Answer

Likely causes → Flat Azure CNI reserves maxPods + 1 IPs per node including surge nodes, and the subnet is too small.

Diagnose → az aks nodepool show ... --query "{count:count, maxPods:maxPods, surge:upgradeSettings.maxSurge}"; compute (count + surge) × (maxPods + 1).

Fix →

  1. Lower max surge temporarily or use --max-unavailable
  2. Add a new pool on a new bigger subnet and migrate
  3. Long term: migrate to Azure CNI Overlay

Prevent → IP math during design; Overlay by default.

Azure All Azure questions Roadmap: AKS & Azure DevOps

More on AKS and ACR Errors