Interview Prep/Networking/Addressing, CIDR & Routing

Your EKS cluster ran out of pod IPs in a /24 subnet. What are your options?

IntermediateScenarioAddressing, CIDR & Routing
Answer

Situation read → With the AWS VPC CNI each pod consumes a VPC IP, so small subnets exhaust quickly.

What I'd do →

  1. Add a secondary CIDR to the VPC, for example 100.64.0.0/16, and create new subnets: aws ec2 associate-vpc-cidr-block --vpc-id vpc-0abc --cidr-block 100.64.0.0/16
  2. Enable custom networking so pods use ENIConfig subnets (AWS_VPC_K8S_CNI_CUSTOM_CNI=true)
  3. Enable prefix delegation (ENABLE_PREFIX_DELEGATION=true) to assign /28 prefixes per ENI
  4. Roll nodes so they pick up the new settings

Why → Pod IPs come from the VPC; separating them into a secondary range keeps the primary range for nodes and load balancers.

Interview tip → Mention IPv6 clusters as the long-term fix for IP exhaustion.

All Networking questions Roadmap: Networking for DevOps

More on Addressing, CIDR & Routing