Pods on EKS run out of IP addresses. What happened and how do you fix it?
IntermediateScenarioEKS and cluster operations
Answer
Situation read → New pods fail with failed to assign an IP address to container.
What I'd do →
- Understand the VPC CNI gives each pod a VPC IP from the node's ENIs, limited by instance type
kubectl -n kube-system logs ds/aws-nodeand check subnet free IPs- Enable prefix delegation (
ENABLE_PREFIX_DELEGATION=true) - Add secondary CIDR with custom networking
- Use larger instances or more subnets
Why → Pod density equals ENIs times IPs per ENI, and subnet size is the second ceiling.
Interview tip → Mention /16 VPC planning.
More on EKS and cluster operations
How do you create a production-ready EKS cluster and what do you decide up front?BeginnerHow do you give a new engineer access to an EKS cluster?IntermediateCompare managed node groups, self-managed nodes, Fargate and Karpenter.IntermediateHow do you upgrade an EKS cluster from 1.31 to 1.32 with minimal risk?AdvancedA node group upgrade is slow or stuck on EKS. What do you look at?IntermediateHow do you connect to a node for debugging without SSH?Beginner