Interview Prep/Azure/AKS and ACR

How many IPs does an AKS subnet need with flat Azure CNI vs Overlay?

AdvancedConceptAKS and ACR
Answer

Flat Azure CNI pre-allocates max pods per node + 1 IPs per node (default max pods 30 → 31 IPs/node), plus headroom for surge nodes during upgrades. Formula: (nodes + max surge) × (maxPods + 1). 50 nodes, surge 1 (or 10%), 30 pods → roughly 51 × 31 = 1,581 IPs, so a /21.

With Overlay, only nodes take VNet IPs: 50 nodes + surge fits in a /26. Pods come from --pod-cidr (default 10.244.0.0/16), which only needs to not overlap the cluster's service CIDR and anything pods must route to. That difference is why Overlay is the default answer for IP-constrained enterprises.

Azure All Azure questions Roadmap: AKS & Azure DevOps

More on AKS and ACR