How to Design a Production 3-AZ AWS VPC & EKS Subnet CIDR Plan in Terraform (Real Working Blueprint)
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. The Production 3-AZ Split for 10.0.0.0/16
Starting from a standard 10.0.0.0/16 VPC (65,536 total IPs), splitting cleanly across 3 Availability Zones gives you massive headroom for EKS pods, RDS instances, and ALBs with zero overlap:
- 3 Public Subnets (
10.0.0.0/19,10.0.32.0/19,10.0.64.0/19) — taggedkubernetes.io/role/elb = 1for Internet-facing ALBs & NAT Gateways - 3 Private Subnets (
10.0.96.0/19,10.0.128.0/19,10.0.160.0/19) — taggedkubernetes.io/role/internal-elb = 1for EKS worker nodes, pods & databases (~8,187 AWS-usable IPs per AZ!) - Remaining Space (
10.0.192.0/18) — reserved cleanly for future database/isolated tiers or VPC peering
3. Don't Forget kubernetes.io/role/elb Tags & Multi-AZ NAT
If you omit the EKS load-balancer subnet tags in Terraform, the AWS Load Balancer Controller cannot auto-discover which subnets should host public vs internal ALBs:
module "vpc" { source = "terraform-aws-modules/vpc/aws" version = "~> 5.0" name = "prod-eks-vpc" cidr = "10.0.0.0/16" azs = ["us-west-2a", "us-west-2b", "us-west-2c"] public_subnets = ["10.0.0.0/19", "10.0.32.0/19", "10.0.64.0/19"] private_subnets = ["10.0.96.0/19", "10.0.128.0/19", "10.0.160.0/19"] enable_nat_gateway = true single_nat_gateway = false # 1 NAT per AZ for high availability enable_dns_hostnames = true enable_dns_support = true public_subnet_tags = { "kubernetes.io/role/elb" = 1 } private_subnet_tags = { "kubernetes.io/role/internal-elb" = 1 } } Full Working Open-Source Terraform + EKS + ArgoCD Reference Repo
You can browse the complete working Terraform AWS VPC, EKS, IRSA, Helm, ArgoCD, and Prometheus SLO codebase (with passing GitHub Actions CI + Trivy scans) here:
- Open-Source Repo: cloudpulse-gitops-platform on GitHub
And check out my free 100% browser-local DevOps & Security tools (zero backend, zero tracking):
- 100% Local JWT Decoder & Security Auditor
- Linux Chmod & Hardened Dockerfile Permission Calculator
- .env → Kubernetes Secret, ConfigMap & ExternalSecret Converter
- Cron Expression Explainer & Hardened K8s CronJob Builder
- Kubernetes & Dockerfile CIS Security Auditor (12 Checks)
- SRE SLO Error Budget & Prometheus Burn-Rate Generator
Want the Full Production Deployment Kit?
Grab the SaaS Deploy & SRE Starter Pack 2026 (modular Terraform AWS VPC/EKS + IRSA, hardened multi-stage Dockerfiles, Helm charts, encrypted Postgres backups, Prometheus SLO alerts & Trivy CI/CD) — use launch code PH20 for 20% off ($15.20):
- Ko-fi (Direct Stripe / Apple Pay): SaaS Deploy & SRE Starter Pack 2026 (
PH20) - Gumroad: SaaS Deploy & SRE Starter Pack 2026 (
PH20) - All-Access 5-in-1 Indie Founder Bundle ($19.20 with
PH20): Ko-fi | Gumroad
Have you ever hit EKS IP exhaustion in production? How did you size your VPC CIDR?