Interview Prep/Networking/Kubernetes Networking

Pods with the AWS VPC CNI take long to start and sometimes stay in ContainerCreating with "failed to assign an IP address". What is the design fix?

AdvancedScenarioKubernetes Networking
Answer

Situation read → IP warm pool or subnet exhaustion.

What I'd do →

  1. Check kubectl logs -n kube-system ds/aws-node and ipamd messages
  2. Verify subnet free IPs and ENI limits per instance type
  3. Enable prefix delegation to get /28 prefixes per ENI
  4. Tune WARM_IP_TARGET, MINIMUM_IP_TARGET
  5. Use custom networking with secondary CIDR
  6. Choose instance types with more ENIs or use Karpenter with right sizing

Why → Each instance type caps ENIs and IPs per ENI, so density and subnet size both limit pods.

Interview tip → Say max pods formula depends on instance type unless prefix delegation is enabled.

All Networking questions Roadmap: Networking for DevOps

More on Kubernetes Networking