Interview Prep/Networking/VPC & Network Architecture

How do you size subnets for EKS and why do clusters run out of IPs?

AdvancedProductionVPC & Network Architecture
Answer

With VPC CNI, every pod consumes a VPC IP, plus node and ENI warm pools. A /24 holds only 251 IPs, so a few nodes of 30 pods each exhausts it. Use /19 or /20 pod subnets, secondary CIDR with custom networking, or prefix delegation, and tune WARM_IP_TARGET and MINIMUM_IP_TARGET.

Monitor with the CNI's awscni_assigned_ip_addresses metrics and subnet free-IP alarms.

All Networking questions Roadmap: Networking for DevOps

More on VPC & Network Architecture