Introduction
The first time I got paged for a Kubernetes cluster at 2am, the problem had nothing to do with kubectl, nothing to do with a Deployment spec, and nothing to do with the scheduler. A CoreDNS pod had been evicted during a node scale-down event, DNS resolution inside the cluster degraded for ninety seconds, and every service that didn't have retry logic on its upstream calls started throwing 5xx errors in a cascade. Kubernetes did exactly what it was told to do. The system around Kubernetes (networking, in this case), is what fell over.
That's the pattern I keep seeing, on every team I've worked with, in every Kubernetes complexity postmortem I've written. Engineers treat Kubernetes as the hard part and underinvest in the four things that actually cause outages: cluster networking, identity and security boundaries, persistent storage behavior, and day-two operations. This post is about those four things, specifically on AWS, and specifically the parts that don't show up until you're running real workloads at real scale.
If you're evaluating whether your team is ready for EKS, or you're trying to figure out why your "simple" cluster keeps generating incidents, this is the breakdown I wish someone had handed me before my first production rollout.
The Core Problem: Kubernetes Is a Thin Layer Over Hard Distributed Systems Problems
Kubernetes gives you a clean abstraction: declare desired state, the control plane reconciles reality toward it. That abstraction is genuinely good software engineering. It is also not where the difficulty lives.
The difficulty lives in the fact that Kubernetes delegates almost everything that matters to pluggable subsystems: a CNI plugin for networking, a CSI driver for storage, an IAM integration for identity, kubelet and container runtime behavior for node-level operations. Each of those subsystems has its own failure modes, its own tuning knobs, and its own documentation that most teams never read until something breaks.
Here's the failure pattern I've watched repeat across multiple engagements: a team stands up an EKS cluster using mostly default settings, gets a few services running, and declares victory. Six months later they have 40 microservices, three teams deploying independently, and an incident channel that lights up every time someone does a rolling deploy near a scaling event. Nobody touched the Kubernetes control plane configuration in that six months. What changed is that the surface area of networking rules, IAM roles, storage claims, and operational load grew faster than the team's understanding of how those subsystems behave under stress.
A concrete example: a fintech client I worked with had a single flat VPC with all EKS worker nodes in one subnet group, no dedicated security groups per workload, and IAM roles for service accounts (IRSA) that were never actually implemented: every pod ran with the same broad node IAM role. It worked fine at 15 services. At 60 services, a single compromised pod would have had read access to S3 buckets, Secrets Manager entries, and RDS credentials that belonged to completely unrelated teams. Nothing about that was a Kubernetes problem. It was an AWS IAM and network segmentation problem that Kubernetes happily let happen because nobody told it not to.
AWS Deep Dive: Where Kubernetes Complexity Actually Lives on AWS
This is the part that separates teams who can run Kubernetes from teams who can run Kubernetes in production without paging themselves.
Networking: CNI Behavior, ALB vs NLB, and IP Exhaustion
The AWS VPC CNI plugin assigns each pod a real IP address from your VPC's CIDR range: not an overlay network address. This is different from most other Kubernetes networking setups, and it's the single most common source of "why did we run out of IPs" incidents on EKS.
Every EC2 instance type has a maximum number of ENIs and IPs per ENI (an m5.large, for example, supports 3 ENIs with 10 IPs each, minus one reserved per ENI for the primary IP). The CNI pre-allocates ENIs to nodes to reduce pod startup latency, which means your effective pod density per node is capped well below what CPU and memory would otherwise allow. Teams that size subnets for "the number of pods we expect" instead of "the number of IPs the CNI will actually consume, including pre-allocation warm pool overhead" run out of subnet capacity during a scale-out event, usually during a traffic spike, which is the worst possible time to discover it.
The fix is either WARM_IP_TARGET / WARM_ENI_TARGET tuning to reduce pre-allocation waste, moving to prefix delegation mode (assigning /28 prefixes instead of individual IPs, which dramatically increases IP density per ENI), or moving pod networking to a secondary CIDR range entirely so it doesn't compete with node and service IPs. Prefix delegation is the right default for most production clusters in 2026, but it requires nitro-based instance types and a CNI version that supports it, verify against current AWS documentation before committing, since minimum supported versions do shift.
On load balancing: the AWS Load Balancer Controller gives you a choice between ALB (Application Load Balancer, Layer 7, supports path-based routing, ideal for HTTP/HTTPS ingress) and NLB (Network Load Balancer, Layer 4, ultra-low latency, preserves source IP, required if you need TCP/UDP or extreme throughput). Teams default to ALB because Ingress resources make it the path of least resistance, then discover months later that NLB was the correct choice for a gRPC-heavy internal service mesh because ALB's HTTP/2 handling introduced connection multiplexing behavior that didn't play well with long-lived streams. Decide based on protocol and latency requirements, not on which one has the friendlier Ingress annotation.
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: internal-api
annotations:
alb.ingress.kubernetes.io/scheme: internal
alb.ingress.kubernetes.io/target-type: ip
alb.ingress.kubernetes.io/load-balancer-attributes: idle_timeout.timeout_seconds=60
spec:
ingressClassName: alb
rules:
- host: internal-api.pulsesoft.internal
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: internal-api
port:
number: 80
That target-type: ip setting matters more than it looks. Instance-mode target groups route to the NodePort and hop through kube-proxy, adding a layer of indirection and losing some source IP fidelity. IP-mode routes directly to pod IPs via the CNI, which is faster and gives you accurate client IPs in logs, but it also means the ALB controller needs pods to be directly routable, which fails silently if your security groups aren't configured to allow the ALB's ENIs to reach pod ENIs on the right ports.
Identity: IRSA, Pod Identity, and the Blast Radius of a Compromised Pod
The single highest-leverage security decision on EKS is how you map Kubernetes service accounts to AWS IAM permissions. The naive approach, giving the node IAM role broad permissions that every pod on that node inherits, means any container escape or SSRF vulnerability in any workload grants access to everything that node's role can touch. I've seen this exact misconfiguration in three separate client environments, and it's always framed as "we'll fix it later" until an incident forces the issue.
IAM Roles for Service Accounts (IRSA) and the newer EKS Pod Identity feature both solve this by scoping IAM permissions to individual Kubernetes service accounts via OIDC federation, so a pod only gets the permissions explicitly granted to its own service account: not the node's role. Pod Identity, generally available since late 2023, simplifies the setup considerably compared to IRSA's OIDC provider and trust policy configuration, and AWS has been steering new adoption toward it, though IRSA remains fully supported. Check current AWS guidance on which is recommended for your EKS version, since this is an area AWS continues to iterate on.
aws eks create-pod-identity-association \
--cluster-name production-cluster \
--namespace payments \
--service-account payments-processor \
--role-arn arn:aws:iam::123456789012:role/payments-processor-role
The gotcha most teams miss: this only protects you if you actually enforce least-privilege at the service account level, not the namespace level. Namespace-wide service accounts with broad roles reintroduce the exact same blast radius problem you were trying to solve, you've just moved the blast radius from "the node" to "the namespace." Scope IAM roles per workload, not per team boundary, if the workload's compromise would matter.
Storage: EBS CSI Driver, Access Modes, and What Happens During AZ Failures
Kubernetes' StatefulSet and PersistentVolumeClaim abstractions hide a hard constraint from most engineers until it bites them: EBS volumes are zonal resources. A PersistentVolume backed by EBS is bound to a specific Availability Zone, and if the pod using it gets rescheduled to a node in a different AZ (during a node failure, an AZ degradation event, or even routine cluster autoscaler rebalancing), the pod will be stuck in Pending because the EBS volume can't attach across AZs.
The EBS CSI driver's default WaitForFirstConsumer binding mode is supposed to mitigate this by delaying volume provisioning until a pod is scheduled, so the volume gets created in the same AZ as the node. But this only helps on first provisioning. It does not help when an existing pod with an existing bound PV needs to move AZs after a failure. Teams that don't account for this discover it precisely when they need reliability most, during an AZ-level incident, which is exactly when you don't want your stateful workloads stuck in scheduling limbo.
For genuinely AZ-resilient stateful workloads on AWS, the real options are: EFS (which is a regional, multi-AZ filesystem, at the cost of higher latency and different consistency characteristics than block storage), application-level replication across AZ-pinned instances (what most managed databases do internally), or accepting the AZ constraint and designing your failure domain around it explicitly, topology spread constraints that keep a StatefulSet's replicas balanced across AZs so a single AZ failure only takes out a minority of replicas, not the whole set.
Enjoying this so far?
Join thousands of engineers receiving practical engineering, Cloud, Distributed Systems, Infrastructure and AI engineering insights.
No spam. Unsubscribe anytime.
Tradeoffs & Decision Framework
There's no universally correct answer here: the right call depends on team size, workload shape, and how much operational investment you're willing to make.
EKS with self-managed node groups vs Fargate: Self-managed nodes give you control over instance types, DaemonSets, and node-level tuning, necessary if you're running GPU workloads, custom CNI configurations, or need privileged containers. Fargate removes node management entirely, which is the right call for teams without dedicated platform engineers, but you lose DaemonSets, host networking, and some observability agents that expect node-level access. Most teams past 20 engineers end up on self-managed or managed node groups because they eventually need a capability Fargate doesn't expose.
IRSA/Pod Identity granularity, per-service vs per-namespace: Per-service IAM roles give you the tightest blast radius but multiply the number of IAM roles and trust policies you maintain, which becomes its own operational burden past a certain service count. Per-namespace roles are easier to manage but reintroduce lateral movement risk within a namespace. The breakpoint is usually: if a namespace contains services with meaningfully different data sensitivity (a payments service and a marketing service in the same namespace, for instance), you need per-service granularity regardless of the maintenance cost.
EBS vs EFS for stateful workloads: EBS gives you better IOPS and lower latency for databases and anything write-heavy, but forces you to design around AZ pinning. EFS gives you AZ resilience and multi-pod concurrent access, but at meaningfully higher latency and a cost model that gets expensive fast at high throughput. If your workload is a single-writer database, EBS with proper topology awareness wins. If it's shared config, ML model artifacts, or multi-pod read access patterns, EFS is usually the better default.
What breaks at small team size vs what breaks at scale: At small team size (under 10 services, one team), the failure mode is usually under-investment in security boundaries because "we'll get to it later", and you often do get away with it, which reinforces the habit. At scale (40+ services, multiple teams deploying independently), the failure mode shifts to networking and IP exhaustion, because nobody owns the VPC-wide view of CIDR allocation across CNI pods, service IPs, and node scaling headroom. Neither failure mode announces itself until it's already an incident.
Lessons From the Field
-
After inheriting a single flat VPC EKS setup for a fintech client, the first thing we fixed wasn't Kubernetes config at all: it was carving worker nodes into dedicated subnets per environment tier so a misconfigured security group in staging couldn't reach production ENIs.
-
In a multi-account AWS org migration, we found three separate teams had each provisioned their own EKS clusters with overlapping VPC CIDRs, which meant VPC peering for a planned service mesh across clusters was a non-starter without re-IPing one of them, plan your CIDR allocation strategy before the second cluster exists, not after the third.
-
I've seen more production incidents caused by cluster autoscaler rebalancing stateful pods across AZs than by any application-level bug in the same clusters, topology spread constraints and pod disruption budgets are not optional for anything stateful.
-
The most common IRSA misconfiguration I've walked into isn't a missing trust policy, it's a trust policy scoped to the wrong OIDC subject, silently falling back to node role permissions instead of failing loudly, which means the security gap goes unnoticed until an audit.
-
Every team that skipped
WARM_ENI_TARGETtuning on the VPC CNI eventually hit a scale-out event where new pods sat inPendingfor minutes waiting on ENI attachment, during exactly the traffic spike that triggered the scale-out in the first place.
Final Thoughts
Kubernetes itself has gotten more stable and more boring over the past several years, and that's a good thing: the control plane is not where most teams should be spending their attention anymore. The complexity has moved outward, into networking topology, IAM boundary design, storage failure domains, and the operational discipline required to run all of it across multiple teams without everyone stepping on each other. Teams that treat those four areas as first-class architecture decisions, not afterthoughts bolted on after the cluster is already in production, are the ones who don't get paged for the same root cause twice.
Key Takeaways
- Kubernetes complexity on AWS comes almost entirely from four subsystems (networking, identity/security, storage, and operations), not from the Kubernetes control plane itself.
- The VPC CNI assigns real VPC IP addresses to pods, which means IP exhaustion during scale-out events is an AWS subnet sizing problem, not a Kubernetes problem, plan CIDR allocation around CNI pre-allocation behavior, not just expected pod count.
- Choose ALB for Layer 7 HTTP/HTTPS routing needs and NLB for Layer 4, low-latency, or TCP/UDP workloads: the decision should follow protocol requirements, not Ingress annotation convenience.
- IRSA and EKS Pod Identity scope IAM permissions to individual service accounts instead of entire nodes, and should be applied per-workload, not per-namespace, whenever workloads differ meaningfully in data sensitivity.
- EBS volumes are AZ-zonal resources, stateful workloads need explicit topology spread constraints and AZ-aware design, or they'll get stuck in
Pendingduring exactly the failure event you needed them to survive. - EFS trades latency and cost for genuine multi-AZ resilience and concurrent access, it's the better default for shared, read-heavy, or multi-pod access patterns rather than single-writer databases.
- Most Kubernetes incidents at scale trace back to under-invested networking and IAM boundaries that worked fine at small team size and quietly became liabilities as service count and team count grew.
Get insights like this in your inbox
Join thousands of engineers receiving practical engineering, Cloud, Distributed Systems, Infrastructure and AI engineering insights.
No spam. Unsubscribe anytime.