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 →
- Associate a secondary CIDR such as
100.64.0.0/16with the VPC - Enable custom networking so pods use the new subnets
- Or enable prefix delegation:
kubectl set env daemonset aws-node -n kube-system ENABLE_PREFIX_DELEGATION=true - 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.
More on VPC and Networking
What is a VPC and what are the CIDR constraints?BeginnerWhat makes a subnet public or private?BeginnerHow do route tables work, including the local route and longest-prefix match?IntermediateInternet Gateway vs NAT Gateway: what does each do?BeginnerNAT Gateway vs NAT instance?IntermediateSecurity group vs network ACL: compare them.Beginner