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.
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.AdvancedWhat are the AKS tiers (Free, Standard, Premium)?IntermediateHow do AKS Kubernetes version upgrades work?IntermediateWhat is the difference between a Kubernetes version upgrade and a node image upgrade?Intermediate