How does the Amazon VPC CNI assign pod IPs?
AdvancedConceptContainers and Serverless
Answer
The VPC CNI gives each pod a real VPC IP from secondary addresses on the node's ENIs, so pods are directly routable and use security groups for pods if enabled. Max pods per node follows ENIs × (IPs per ENI − 1) + 2. IP exhaustion is the common failure.
Options: prefix delegation (a /28 per slot, many more pods), custom networking with a secondary CIDR, tuning WARM_IP_TARGET/WARM_ENI_TARGET, or IPv6 clusters.
More on Containers and Serverless
ECS vs EKS vs Fargate: what is the relationship?BeginnerWhat are ECS task definitions, tasks and services?BeginnerWhat are ECS capacity providers?IntermediateWhat is the difference between the ECS task role and the task execution role?IntermediateHow does `awsvpc` network mode work in ECS?IntermediateWhat deployment strategies does ECS support?Advanced