Sizing AWS VPC Subnets for EKS in Three Availability Zones with Terraform
A DevOps engineer explains that undersized subnets can leave EKS pods stuck in Pending once the VPC CNI runs out of IP addresses. The article notes that AWS reserves five addresses in every subnet, so a /24 offers 251 usable IPs and a /28 only 11, and that each pod receives a real VPC address. It proposes a 10.0.0.0/16 VPC split across three Availability Zones, with public and private /19 subnets and spare space kept in reserve. It also shows a Terraform VPC module configuration with Kubernetes load-balancer subnet tags and one NAT gateway per zone. The post closes with links to a code repository and promotional tools and bundles from the author.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in