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 →
- 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 - Enable custom networking so pods use ENIConfig subnets (
AWS_VPC_K8S_CNI_CUSTOM_CNI=true) - Enable prefix delegation (
ENABLE_PREFIX_DELEGATION=true) to assign /28 prefixes per ENI - 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.
More on Addressing, CIDR & Routing
You own 10.0.0.0/16 for a new VPC and need separate /24 subnets for dev, QA and prod across two AZs. How do you carve it up?BeginnerA host is configured as 192.168.1.130/25. What network does it belong to and what is the broadcast address?BeginnerHow many usable IPs does an AWS subnet of /28 have?BeginnerA route table has 10.0.0.0/16 -> local and 10.0.1.0/24 -> vpn-gw. Where does a packet to 10.0.1.5 go?BeginnerA newly built server can ping everything in its subnet but nothing outside. What is the first thing you check?BeginnerYou are picking a private range for a new company network. Which RFC 1918 range do you choose and why?Beginner