VPC Design for a Startup Kubernetes Cluster on AWS
Plan address space, subnets, and NAT early, before they limit growth.

Sponsored by Porter
- Written by
- Ship It Yourself Editors
- Published
- November 27, 2026
- Reading time
- 9 min read
- Sources cited
- 3 sources ↓
What this covers
- Why VPC decisions for EKS are permanent in a way that most AWS choices are not
- Choosing a VPC CIDR that will not run out before the company does
- Carving subnets into three tiers and understanding what actually makes one public or private
- Sizing private subnets for pod IP consumption, and when prefix delegation changes the math
VPC design for a startup Kubernetes cluster on AWS is a growth decision. EKS pods consume real VPC IP addresses, so early choices about address space, subnets, and routing become limits on the cluster. The right approach is to reserve room, separate traffic deliberately, and build private access before growth makes those choices expensive to undo.
Why VPC decisions for EKS are permanent in a way that most AWS choices are not
Amazon EKS best practices describes two VPCs behind an EKS cluster. AWS manages the one hosting the control plane, which does not appear in the customer account. The customer manages the other, where nodes, pods, and load balancers live. That second VPC is the subject here. Its design determines the network available to the workloads.
The AWS VPC CNI plugin assigns VPC IP addresses directly to pods. Pod growth therefore consumes the same address space divided into subnets. The primary CIDR, or address range, cannot be resized after creation, although a secondary range can be attached. Subnet boundaries and AZ placement are fixed, while changing routing under running workloads can be disruptive. The decisions that follow run in the order a startup faces them, from choosing address space to controlling access.
Choosing a VPC CIDR that will not run out before the company does
Start with the most generous primary CIDR available. A /16 is the sane default for production because unused address space costs nothing, while an undersized range constrains every subnet built from it. Sizing only for the first set of worker nodes misses the main consumer. Pods need addresses too, and their demand grows with the applications running on the cluster. A secondary CIDR is an escape hatch.
The range also needs to fit the networks the company will connect later. Other VPCs, Transit Gateway routes, and VPN or Direct Connect links to on-premises networks all belong in that decision. Overlap becomes painful when integration is already under way. Conventional private ranges include 10.x, 172.16–172.31.x, and 192.168.x, with 10.x offering room to divide environments and regions cleanly. Keep a simple CIDR allocation register showing which block belongs to each account, environment, and region, rather than leaving future teams to reconstruct that map.
Carving subnets into three tiers and understanding what actually makes one public or private

A route table makes a subnet public or private. The name does not. A route to an Internet Gateway makes it public, while the absence of that route makes it private. This distinction is the foundation of the three-tier design because each tier needs a different path for traffic.
Public subnets hold internet-facing load balancers and NAT Gateways, with default traffic routed to the Internet Gateway. Worker nodes and application pods belong in private subnets, where outbound internet traffic goes through NAT. Isolated data subnets have no route to or from the internet. They hold databases, caches, and internal services that should communicate only with the application tier inside the VPC. Putting workers in public subnets gives them a direct internet route and exposes them more than they need to be.
A /24 suffices for a public subnet, while private subnets need more room for pod addresses. A typical three-AZ layout has three public /24s and three private /20s within a /16, with room left for the data tier and for growth. Tags need attention too. Kubernetes Services of type LoadBalancer need kubernetes.io/role/elb=1 on public subnets and kubernetes.io/role/internal-elb=1 on private subnets to provision correctly, even when the routes themselves are right.
Sizing private subnets for pod IP consumption, and when prefix delegation changes the math
Plan private subnet capacity around both pod and node demand. Ordinary node-based sizing understates demand because each pod receives a VPC address. AWS also reserves five addresses in every subnet for the network address, router, DNS, future use, and broadcast. The full block is therefore never available to workloads.
Address supply is only one limit on pod density. The default VPC CNI also limits pods per node through the capacity of its elastic network interfaces, or ENIs. Prefix delegation raises that limit, so fewer nodes can handle the same pod demand and the infrastructure may cost less. It does not remove the need for pod addresses. Secondary CIDRs can separate pod address space from node space, but that option does not justify squeezing the original private subnets.
Cluster communication also uses addresses in the selected subnets. EKS creates cross-account ENIs, called X-ENIs, there so the customer VPC can communicate with the control plane. Subnet sizing therefore supports both workloads and the cluster’s management path. A design that considers only application pods leaves out part of its own infrastructure.
Spreading across Availability Zones for resilience without creating a cross-AZ data transfer problem
EKS requires at least two subnets in two different Availability Zones when a cluster is created. Three AZs is the production standard. Those subnet selections establish where EKS places its control-plane communication interfaces, so AZ planning is part of cluster setup. But registering subnets across AZs does not, by itself, make the application highly available. Workloads also need replicas, topology spread constraints, and pod disruption budgets that support the intended distribution.
That distribution has a cost as well as a resilience benefit. Traffic between pods in different AZs is metered, so the more traffic routine cross-AZ service calls send, the more they cost. If private subnets in AZ-b and AZ-c use a single NAT Gateway in AZ-a, their outbound traffic incurs cross-AZ charges. An AZ-a outage also removes that shared outbound path, tying otherwise separate zones to one failure point.
NAT Gateway strategy: one per AZ versus shared, and what the choice actually costs
Use one NAT Gateway in each AZ for production. Routing each private subnet through its local gateway avoids making another AZ responsible for its outbound internet access. This costs more in fixed gateway fees than sharing one gateway. The tradeoff buys separation between failure domains and avoids the cross-AZ transfer charges caused by remote NAT routing.
The bill has more than one component. A NAT Gateway has a fixed hourly fee and a per-GB processing fee, and traffic that comes from another AZ has transfer charges on top. A shared gateway thus saves less than it seems to when comparing only hourly fees. Development and staging can share one when the team knowingly accepts the outage risk. That exception should remain a deliberate choice for development and staging environments.
Free gateway endpoints for S3 and DynamoDB directly reduce NAT load. Without them, traffic from private subnets to those services goes through NAT, which adds processing charges to the bill. These endpoints require no hourly commitment, so omitting them leaves an avoidable charge without a countervailing benefit. Add them to the initial routing design.
VPC endpoint configuration and why private subnets that skip this pay a metered tax on AWS-native traffic
The remaining AWS API traffic needs a separate calculation. Without VPC endpoints, private subnets use NAT to reach services such as ECR for image pulls, STS for token refresh, and CloudWatch Logs for observability. These are routine cluster operations. That traffic has NAT processing charges even though it could have stayed on the AWS backbone. Private subnet placement alone does not remove that metered path.
Gateway endpoints are free and use route tables, while interface endpoints have their own bill. ECR, CloudWatch Logs, STS, and Secrets Manager interface endpoints charge per AZ per hour plus per-GB fees. Compare those costs with what NAT processing would cost for the amount of traffic the cluster actually sends. ECR deserves particular attention because container image pulls are large and frequent. Its interface endpoints also remove the NAT Gateway dependency from that access path, making the decision about resilience as well as spend.
Access to the Kubernetes API server uses a separate network path from service endpoints. After bootstrap, moving control-plane traffic to the private endpoint through X-ENIs complements the service endpoint design. It also provides a network-isolation control that auditors examine in HIPAA or SOC 2 reviews.
Control plane endpoint access modes and what each means for cluster management and compliance
Public-only access is the default and least restrictive mode. Node-to-control-plane traffic leaves the VPC but stays on Amazon’s network, and nodes need a public IP or NAT route to reach the endpoint. For workers in private subnets, that means NAT. This mode simplifies initial access for external management tools, which makes it a reasonable bootstrap posture.
Enabling both public and private endpoints is the intermediate option. Traffic originating inside the VPC uses the private path through X-ENIs, while external tooling can still reach the public API server. With private-only access, that public entry point is gone. All management traffic must then originate within the VPC or a connected network, and the API server DNS resolves to a private VPC address. CI/CD pipelines and developer machines therefore need access through a VPN, Direct Connect, or a bastion.
The primary CIDR is fixed, but these settings can change later. Start with public-only or both modes for bootstrap simplicity, then move to private-only as the cluster matures and compliance requirements become concrete. Management access must be ready before public access is disabled. Private-only is the expected posture for HIPAA and SOC 2 environments, and removing public access after setup is a standard hardening step.
Security layering on top of the VPC: security groups, network ACLs, and IRSA as the IAM complement
Routes determine where traffic can go, while security controls determine which traffic is allowed. Security groups attach to instances and ENIs, support allow rules, and automatically permit return traffic because they are stateful. Group-to-group references make them useful as the primary workload control. A database can accept port 5432 from the application tier’s security group without relying on a static list of application addresses. The rule follows group membership as workloads change.
Network ACLs serve a different, narrower role. They apply to entire subnets, evaluate numbered allow and deny rules, and require explicit return-traffic rules, including ephemeral port ranges, because they are stateless. Keep them close to their default settings unless a subnet-level deny rule must stay in force even if the security group configuration drifts.
Private placement does not settle AWS permissions either. By default, pods on an EKS node can access the node’s IAM role, giving unrelated workloads the same AWS permissions. IAM Roles for Service Accounts, or IRSA, separates pod identity from node identity. A specific Kubernetes service account in a specific namespace assumes a specific IAM role, allowing permissions to match the workload. Audit logs can then attribute access to that precise identity.
That distinction also separates two compliance responsibilities. IRSA supports SOC 2 CC6.1 logical access controls, while private subnets contribute primarily to CC6.6 boundary protection. Private endpoints and VPC endpoints complement those controls. EKS is HIPAA-eligible with a signed BAA, but deployment configuration still has to meet the requirements, including IRSA, private endpoints, and encryption in transit using FIPS 140-2 validated modules where required. Eligibility is not a substitute for correct implementation.
Cluster upgrades, CVE patching, Karpenter configuration, endpoint maintenance, and compliance evidence remain operational responsibilities. For a seed or Series A startup without a dedicated platform engineering team, a platform deployed directly into its own AWS account can handle cluster management, CNI configuration, autoscaling, and patching while preserving ownership of the infrastructure. The choice is whether to maintain the architecture by hand or have a platform keep it current. Own the cloud and outsource the complexity, rather than avoiding it through shared-tenant infrastructure that cannot meet the compliance and cost requirements growth brings.
This article is sponsored by Porter.
Methodology & sources
- VPC and Subnet Considerations - Amazon EKS
Supplied the EKS subnet guidance, including the two-VPC model, X-ENIs, and subnet requirements across AZs.
- Amazon VPC Explained: A Complete Guide to Virtual Private Cloud and Advanced VPC Networking
Covered general VPC building blocks such as route tables, subnet tiers, security groups, network ACLs, and endpoints that the article applies to EKS.
- VPC and Subnet Considerations - EKS Best Practices Guides
Supported the guidance on subnet sizing, pod IP consumption, secondary CIDRs, and the subnet tagging needed for load balancers.