Menu

How to Design a Production 3-AZ AWS VPC & EKS Subnet CIDR Plan in Terraform (Real Working Blueprint)
📰

How to Design a Production 3-AZ AWS VPC & EKS Subnet CIDR Plan in Terraform (Real Working Blueprint)

DEV Community: terraform·Woojin LIM, Ryan·2 days ago
#w3k90OjL
Long article (601 words) — no AI summary yet.
Reading 0:00
15s threshold

Nothing slows down a growing engineering team faster than realizing six months after launch that your AWS VPC was created with a tiny /24 subnet—and now EKS pods are stuck in Pending because the VPC CNI ran out of ENI IP addresses!

Here is the exact 3-AZ AWS VPC & Kubernetes CIDR sizing blueprint I use on every production cluster (with full open-source Terraform modules on GitHub), plus our suite of 100% browser-local DevOps tools.

1. Remember AWS Reserves 5 IP Addresses Per Subnet (Not 2!)

In textbook networking, a /24 subnet has 256 - 2 = 254 usable hosts.

In AWS VPC , Amazon reserves 5 IP addresses in every single subnet (network address, VPC router .1 , DNS server .2 , future use .3 , and broadcast .255 )—leaving 251 usable IPs in a /24 and only 11 usable IPs in a /28 .

With the AWS VPC CNI plugin on EKS, every pod gets a real VPC IP address. Sizing private subnets too small ( /24 or /25 ) will cause silent autoscaling failures during traffic spikes.

2.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.