Interview Prep/Kubernetes/EKS and cluster operations

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 →

  1. Understand the VPC CNI gives each pod a VPC IP from the node's ENIs, limited by instance type
  2. kubectl -n kube-system logs ds/aws-node and check subnet free IPs
  3. Enable prefix delegation (ENABLE_PREFIX_DELEGATION=true)
  4. Add secondary CIDR with custom networking
  5. 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.

All Kubernetes questions Roadmap: Kubernetes networking, storage & scaling

More on EKS and cluster operations