Interview Prep/AWS/EKS in Production

How do you avoid pod IP exhaustion with the VPC CNI?

AdvancedProductionEKS in Production
Answer

Options, from least to most change:

  1. Prefix delegation (ENABLE_PREFIX_DELEGATION=true) assigns /28 prefixes to ENIs, raising pods per node and reducing EC2 API calls; needs contiguous free space in subnets.
  2. Tune WARM_IP_TARGET / MINIMUM_IP_TARGET so nodes do not hoard IPs.
  3. Custom networking: add a secondary CIDR such as 100.64.0.0/16 to the VPC and put pod ENIs there via ENIConfig.
  4. IPv6 clusters, which make exhaustion a non-issue.

Remember to raise maxPods on nodes when you enable prefix delegation.

aws All AWS questions Roadmap: EKS, ECS & serverless on AWS

More on EKS in Production