How do you avoid pod IP exhaustion with the VPC CNI?
AdvancedProductionEKS in Production
Answer
Options, from least to most change:
- Prefix delegation (
ENABLE_PREFIX_DELEGATION=true) assigns/28prefixes to ENIs, raising pods per node and reducing EC2 API calls; needs contiguous free space in subnets. - Tune
WARM_IP_TARGET/MINIMUM_IP_TARGETso nodes do not hoard IPs. - Custom networking: add a secondary CIDR such as
100.64.0.0/16to the VPC and put pod ENIs there viaENIConfig. - IPv6 clusters, which make exhaustion a non-issue.
Remember to raise maxPods on nodes when you enable prefix delegation.
More on EKS in Production
Managed node groups, self-managed nodes, Fargate, Karpenter or Auto Mode: how do you choose?IntermediateHow do you design Karpenter NodePools for production?AdvancedIRSA or EKS Pod Identity for new clusters?IntermediateHow do you manage who can access the EKS API?IntermediateHow do you run EKS version upgrades safely?AdvancedWhat happens if you stay on an old EKS version?Beginner