Interview Prep/AWS/VPC and Networking

An EKS cluster ran out of IP addresses in its subnets. What do you do?

IntermediateScenarioVPC and Networking
Answer

Situation read → The VPC CNI assigns a VPC IP per pod, so small subnets exhaust quickly.

What I'd do →

  1. Associate a secondary CIDR such as 100.64.0.0/16 with the VPC
  2. Enable custom networking so pods use the new subnets
  3. Or enable prefix delegation: kubectl set env daemonset aws-node -n kube-system ENABLE_PREFIX_DELEGATION=true
  4. Long term, size subnets larger from the start

Why → Secondary CIDRs expand capacity without re-IPing nodes.

Interview tip → Mention IPv6 EKS clusters avoid the problem entirely.

aws All AWS questions Roadmap: AWS core services

More on VPC and Networking