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.
More on VPC & Network Architecture
How would you design a production VPC for a three-tier web application?IntermediateHow many AZs and subnets should a production VPC use, and why?BeginnerWhat makes a subnet public versus private?BeginnerHow do you avoid NAT gateway single points of failure and cross-AZ charges?IntermediateWhen should you use VPC endpoints?IntermediateHow do you design connectivity for 50+ VPCs across accounts and regions?Advanced