Note: Prod cluster network layout
VPC, subnets, ingress path and egress of the prod EKS cluster, as I understand it.
Note: Prod cluster network layout · #kubernetes #aws #network #architectureNote
Context
Section titled “Context”Wrote this while debugging intermittent i/o timeout errors from pods to an external API. I needed the whole path in one place.
Details
Section titled “Details”VPC 10.40.0.0/16, 3 AZs (eu-west-1a/b/c).
| Tier | Subnets | Notes |
|---|---|---|
| Public | 10.40.0.0/20, 10.40.16.0/20, 10.40.32.0/20 |
ALB, NAT gateways (one per AZ) |
| Private (nodes + pods) | 10.40.64.0/18, 10.40.128.0/18, 10.40.192.0/19 |
VPC CNI: pods get VPC IPs |
| Data | 10.40.48.0/22 ×3 |
RDS, ElastiCache. No route to the internet |
Ingress path: Route 53 → ALB (public subnets, AWS Load Balancer Controller) → target type ip → pod IPs directly. No NodePort hop.
Egress path: pod → node ENI → NAT gateway in the same AZ → internet. Elastic IPs of the 3 NATs are allow-listed by partners.
client ─▶ ALB ─▶ pod (10.40.x.x)pod ─▶ NAT-gw (per AZ, EIP) ─▶ partner APIAccess: cluster API is private-only; reach it via SSM on the bastion (AWS: Start an SSM session on an instance), then AWS: Update kubeconfig for an EKS cluster.
Open questions
Section titled “Open questions”- Pod IP exhaustion risk in
10.40.192.0/19(AZ c is half the size of the others). - Do we need VPC endpoints for S3/ECR to cut NAT costs?
References
Section titled “References”- Terraform:
infra/network/in the platform repo - How-to: Rotate AWS IAM access keys
My DevOps Playbook by Angelo John Calleja