AWS EKS Deep Dive (IRSA / Pod Identity, VPC CNI, ALB Controller, Managed Node Groups)
Operate EKS with IRSA/Pod Identity, VPC CNI, ALB Controller, and managed nodes.
In plain words
EKS is an AWS control center where the Pod badge is exchanged for an IAM role and the VPC hands out routable addresses. The simple Kubernetes rule is: EKS offers IRSA or EKS Pod Identity for service-account-to-IAM mapping, VPC CNI choices, AWS Load Balancer Controller, and managed or self-managed node groups.
Think of it like…
EKS is an AWS control center where the Pod badge is exchanged for an IAM role and the VPC hands out routable addresses.
Where you’ve seen it
During a controlled maintenance window, the platform operator runs aws eks update-kubeconfig --name prod; kubectl get sa alb-controller -n kube-system -o yaml; kubectl get pods -n kube-system -l k8s-app=aws-node. Expected evidence: EKS offers IRSA or EKS Pod Identity for service-account-to-IAM mapping, VPC CNI choices, AWS Load Balancer Controller, and managed or self-managed node groups. If the run instead shows this symptom, stop and restore the last known state: VPC CNI can exhaust subnet IPs, an IAM trust or namespace mismatch denies a Pod credential, and ALB ingress needs subnets, tags, and security-group health.
Words you’ll hear
- IRSA
- For this lesson, IRSA is the controlling idea: EKS offers IRSA or EKS Pod Identity for service-account-to-IAM mapping, VPC CNI choices, AWS Load Balancer Controller, and managed or self-managed node groups.
- VPC CNI
- VPC CNI is the checkpoint; run
aws eks update-kubeconfig --name prod; kubectl get sa alb-controller -n kube-system -o yaml; kubectl get pods -n kube-system -l k8s-app=aws-nodeand inspect the owner chain. VPC CNI can exhaust subnet IPs, an IAM trust or namespace mismatch denies a Pod credential, and ALB ingress needs subnets, tags, and security-group health. - ALB Controller
- ALB Controller is the outcome to preserve; the cost is explicit: Native AWS integrations simplify networking and IAM, but IP planning, IAM condition keys, managed add-on versions, and controller cloud permissions create coupled dependencies.
- Verification evidence
- The evidence command is
aws eks update-kubeconfig --name prod; kubectl get sa alb-controller -n kube-system -o yaml; kubectl get pods -n kube-system -l k8s-app=aws-node. It connects the declaration to this behavior: Operate EKS with IRSA/Pod Identity, VPC CNI, ALB Controller, and managed nodes.
Visual diagram
Theory & deep dive
How IRSA reaches the intended state
Operate EKS with IRSA/Pod Identity, VPC CNI, ALB Controller, and managed nodes. EKS offers IRSA or EKS Pod Identity for service-account-to-IAM mapping, VPC CNI choices, AWS Load Balancer Controller, and managed or self-managed node groups.
The concrete checkpoint is aws eks update-kubeconfig --name prod; kubectl get sa alb-controller -n kube-system -o yaml; kubectl get pods -n kube-system -l k8s-app=aws-node; compare the IRSA owner, VPC CNI state, and ALB Controller outcome instead of treating YAML acceptance as proof.
Run aws eks update-kubeconfig --name prod; kubectl get sa alb-controller -n kube-system -o yaml; kubectl get pods -n kube-system -l k8s-app=aws-node after the change and correlate the result with Events and the owning object. EKS offers IRSA or EKS Pod Identity for service-account-to-IAM mapping, VPC CNI choices, AWS Load Balancer Controller, and managed or self-managed node groups.
VPC CNI: failure boundary and production cost
VPC CNI can exhaust subnet IPs, an IAM trust or namespace mismatch denies a Pod credential, and ALB ingress needs subnets, tags, and security-group health. The prerequisite contract is concrete: EKS offers IRSA or EKS Pod Identity for service-account-to-IAM mapping, VPC CNI choices, AWS Load Balancer Controller, and managed or self-managed node groups.
Native AWS integrations simplify networking and IAM, but IP planning, IAM condition keys, managed add-on versions, and controller cloud permissions create coupled dependencies. A safe design limits blast radius, records the last good configuration, and uses aws eks update-kubeconfig --name prod; kubectl get sa alb-controller -n kube-system -o yaml; kubectl get pods -n kube-system -l k8s-app=aws-node as a deterministic rollback checkpoint.
Capture the current state with aws eks update-kubeconfig --name prod; kubectl get sa alb-controller -n kube-system -o yaml; kubectl get pods -n kube-system -l k8s-app=aws-node, then correct the controlling manifest rather than patching a child object; the relevant divergence signal is specific: VPC CNI can exhaust subnet IPs, an IAM trust or namespace mismatch denies a Pod credential, and ALB ingress needs subnets, tags, and security-group health.
How it works, step by step
Step 1 of 41. Plan the lifecycle boundary
Inventory versions, capacity, state, backups, and ownership in a reversible plan: EKS offers IRSA or EKS Pod Identity for service-account-to-IAM mapping, VPC CNI choices, AWS Load Balancer Controller, and managed or self-managed node groups.
- Goal
- Operate EKS with IRSA/Pod Identity, VPC CNI, ALB Controller, and managed nodes.
- Owner
- IRSA
When to use it & trade-offs
What it is
Operate EKS with IRSA/Pod Identity, VPC CNI, ALB Controller, and managed nodes. EKS offers IRSA or EKS Pod Identity for service-account-to-IAM mapping, VPC CNI choices, AWS Load Balancer Controller, and managed or self-managed node groups.
Why it matters: VPC CNI can exhaust subnet IPs, an IAM trust or namespace mismatch denies a Pod credential, and ALB ingress needs subnets, tags, and security-group health. The invariant at risk is specific: EKS offers IRSA or EKS Pod Identity for service-account-to-IAM mapping, VPC CNI choices, AWS Load Balancer Controller, and managed or self-managed node groups. The quickest fact check before changing the design is aws eks update-kubeconfig --name prod; kubectl get sa alb-controller -n kube-system -o yaml; kubectl get pods -n kube-system -l k8s-app=aws-node.
When to reach for it
- Use IRSA to enforce this invariant: EKS offers IRSA or EKS Pod Identity for service-account-to-IAM mapping, VPC CNI choices, AWS Load Balancer Controller, and managed or self-managed node groups.
- Use VPC CNI evidence from
aws eks update-kubeconfig --name prod; kubectl get sa alb-controller -n kube-system -o yaml; kubectl get pods -n kube-system -l k8s-app=aws-nodein reviews and incident timelines. Operate EKS with IRSA/Pod Identity, VPC CNI, ALB Controller, and managed nodes. - Choose the managed cloud or platform service route only when this cost is justified by governance or scale: Native AWS integrations simplify networking and IAM, but IP planning, IAM condition keys, managed add-on versions, and controller cloud permissions create coupled dependencies.
When to avoid or be careful
- Avoid assuming IRSA is complete after YAML submission; the required behavior is concrete: EKS offers IRSA or EKS Pod Identity for service-account-to-IAM mapping, VPC CNI choices, AWS Load Balancer Controller, and managed or self-managed node groups.
- Avoid treating the next symptom as random; check the owner and state with
aws eks update-kubeconfig --name prod; kubectl get sa alb-controller -n kube-system -o yaml; kubectl get pods -n kube-system -l k8s-app=aws-nodefirst: VPC CNI can exhaust subnet IPs, an IAM trust or namespace mismatch denies a Pod credential, and ALB ingress needs subnets, tags, and security-group health. - Avoid adopting a heavier platform wrapper before measuring its cost: Native AWS integrations simplify networking and IAM, but IP planning, IAM condition keys, managed add-on versions, and controller cloud permissions create coupled dependencies.
Native, manual, and managed paths for IRSA
aws eks update-kubeconfig --name prod; kubectl get sa alb-controller -n kube-system -o yaml; kubectl get pods -n kube-system -l k8s-app=aws-node.Strengths: EKS offers IRSA or EKS Pod Identity for service-account-to-IAM mapping, VPC CNI choices, AWS Load Balancer Controller, and managed or self-managed node groups.
Watch out: Native AWS integrations simplify networking and IAM, but IP planning, IAM condition keys, managed add-on versions, and controller cloud permissions create coupled dependencies. Recovery must also recognize this signal: VPC CNI can exhaust subnet IPs, an IAM trust or namespace mismatch denies a Pod credential, and ALB ingress needs subnets, tags, and security-group health.
aws eks update-kubeconfig --name prod; kubectl get sa alb-controller -n kube-system -o yaml; kubectl get pods -n kube-system -l k8s-app=aws-node; the expected invariant is: EKS offers IRSA or EKS Pod Identity for service-account-to-IAM mapping, VPC CNI choices, AWS Load Balancer Controller, and managed or self-managed node groups.Strengths: aws eks update-kubeconfig --name prod; kubectl get sa alb-controller -n kube-system -o yaml; kubectl get pods -n kube-system -l k8s-app=aws-node gives immediate feedback without first building a platform layer.
Watch out: A manual change can hide drift, and unlike IRSA, it does not make this symptom self-documenting: VPC CNI can exhaust subnet IPs, an IAM trust or namespace mismatch denies a Pod credential, and ALB ingress needs subnets, tags, and security-group health.
aws eks update-kubeconfig --name prod; kubectl get sa alb-controller -n kube-system -o yaml; kubectl get pods -n kube-system -l k8s-app=aws-node.Strengths: Platform controls can wrap this exact behavior in policy or dashboards: EKS offers IRSA or EKS Pod Identity for service-account-to-IAM mapping, VPC CNI choices, AWS Load Balancer Controller, and managed or self-managed node groups.
Watch out: The added platform ownership buys value at this cost: Native AWS integrations simplify networking and IAM, but IP planning, IAM condition keys, managed add-on versions, and controller cloud permissions create coupled dependencies.
Interview signals & numbers to know
When this topic comes up
- Interview anchor: EKS offers IRSA or EKS Pod Identity for service-account-to-IAM mapping, VPC CNI choices, AWS Load Balancer Controller, and managed or self-managed node groups.
- Trace IRSA to ALB Controller through VPC CNI; the invariant is: EKS offers IRSA or EKS Pod Identity for service-account-to-IAM mapping, VPC CNI choices, AWS Load Balancer Controller, and managed or self-managed node groups.
- Recognize the symptom: VPC CNI can exhaust subnet IPs, an IAM trust or namespace mismatch denies a Pod credential, and ALB ingress needs subnets, tags, and security-group health.
- Justify the cost: Native AWS integrations simplify networking and IAM, but IP planning, IAM condition keys, managed add-on versions, and controller cloud permissions create coupled dependencies.
- Verify with aws eks update-kubeconfig --name prod; kubectl get sa alb-controller -n kube-system -o yaml; kubectl get pods -n kube-system -l k8s-app=aws-node instead of only inspecting YAML.
Benchmarks & rules of thumb
- 2
- workload IAM options highlighted: IRSA and Pod Identity
- 1
- VPC CIDR plan must cover Pod and node addresses
- 3
- managed integration families: CNI, load balancer, and compute nodes
Common mistakes & follow-ups
Common interview mistakes
- Debugging only the child object misses the IRSA owner contract: EKS offers IRSA or EKS Pod Identity for service-account-to-IAM mapping, VPC CNI choices, AWS Load Balancer Controller, and managed or self-managed node groups.
- Ignoring this telltale condition leads to unrelated changes: VPC CNI can exhaust subnet IPs, an IAM trust or namespace mismatch denies a Pod credential, and ALB ingress needs subnets, tags, and security-group health.
- Repeating
aws eks update-kubeconfig --name prod; kubectl get sa alb-controller -n kube-system -o yaml; kubectl get pods -n kube-system -l k8s-app=aws-nodewithout an owner for remediation wastes retry cost. Native AWS integrations simplify networking and IAM, but IP planning, IAM condition keys, managed add-on versions, and controller cloud permissions create coupled dependencies.
Likely interviewer follow-ups
- How would API output and runtime evidence prove this behavior: EKS offers IRSA or EKS Pod Identity for service-account-to-IAM mapping, VPC CNI choices, AWS Load Balancer Controller, and managed or self-managed node groups?
- Which owner object, logs, and Events would you inspect for this symptom-VPC CNI can exhaust subnet IPs, an IAM trust or namespace mismatch denies a Pod credential, and ALB ingress needs subnets, tags, and security-group health-?
- At what threshold would this cost become unacceptable: Native AWS integrations simplify networking and IAM, but IP planning, IAM condition keys, managed add-on versions, and controller cloud permissions create coupled dependencies?
aws eks update-kubeconfig --name prod; kubectl get sa alb-controller -n kube-system -o yaml; kubectl get pods -n kube-system -l k8s-app=aws-node, name the failure, then justify the cost. Invariant: EKS offers IRSA or EKS Pod Identity for service-account-to-IAM mapping, VPC CNI choices, AWS Load Balancer Controller, and managed or self-managed node groups. Failure: VPC CNI can exhaust subnet IPs, an IAM trust or namespace mismatch denies a Pod credential, and ALB ingress needs subnets, tags, and security-group health. Cost: Native AWS integrations simplify networking and IAM, but IP planning, IAM condition keys, managed add-on versions, and controller cloud permissions create coupled dependencies.Knowledge check
Put it into practice
Practice related interview Q&A
Apply AWS EKS Deep Dive (IRSA / Pod Identity, VPC CNI, ALB Controller, Managed Node Groups) with generative AI interview Q&A and hands-on practice.