A large VNet is running out of IPs because of AKS. What are your options?
AdvancedScenarioNetworking Design
Answer
Situation read → Pod IPs are eating the VNet. Move pods off VNet IPs.
What I'd do →
- Migrate to Azure CNI Overlay:
az aks update -g rg -n aks --network-plugin-mode overlay --pod-cidr 192.168.0.0/16(supported upgrade from flat Azure CNI and kubenet; nodes reimage) - If staying on VNet IPs, switch to dynamic pod IP allocation with separate pod subnets
- Add another address space to the VNet (
az network vnet update --address-prefixes) for new node pools - Reduce
maxPodson pools that don't need 30+
Why → Overlay cuts VNet IP use to just nodes, typically freeing thousands of addresses.
Interview tip → Mention the IP math, nodes × (maxPods + 1), to show you understand the cause.
More on Networking Design
Design the network for a new three-tier app in Central India that must be private except for the web front end.IntermediateSpoke A can't talk to spoke B, both peered to the hub. What design change makes it work?BeginnerWorkloads must reach Azure SQL privately, including from on-prem over ExpressRoute. How do you set it up?AdvancedYou need all outbound traffic from AKS to go through Azure Firewall. How do you do it?AdvancedA partner needs to whitelist a single egress IP from your App Service and AKS workloads. How?IntermediateYou're asked to expose an internal API to a customer's Azure tenant without VNet peering. How?Advanced