Interview's MateKubernetes
Interview's Mate

Kubernetes

K8s · Workloads · GitOps · Cloud

Visualizer

DSA Visualizer
All 32 lessons
Custom Playground
Try your own examples

Learning

System Design
31 architecture topics
SQL Learning
160 foundations → production topics
AI Engineering
160 LLM → backend topics
Data Science
160 Python → MLOps topics
Data Engineer
160 SQL → streaming topics
Docker
160 Docker learning topics
Kubernetes
160 K8s fundamentals → cloud
Java LearnSoon
Coming soon
Python Learn
Interview Q&A & internals
JavaScript Learn
Closures, async & DOM Q&A
Tech Learn
Search, practise & track Q&A
AI DSA Practice
Solve coding problems
Theme
Home
Kubernetes topics
Lesson 147/ 160
08. Cluster Administration & Managed Cloud Kubernetes

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.

AdvancedIRSA · VPC CNI · ALB Controller3 quiz questions
Practice DevOps Q&A
In plain wordsDiagramTheoryStep by stepWhen to use itInterview cluesMistakes to avoidQuiz (3)Practice

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-node and 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

Loading interactive 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.

Verify VPC CNI, not only object creation

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.

Key takeaway: IRSA is implemented only when this invariant remains observable: 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.

Recover from VPC CNI drift

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.

Key takeaway: Accept the trade-off consciously: Native AWS integrations simplify networking and IAM, but IP planning, IAM condition keys, managed add-on versions, and controller cloud permissions create coupled dependencies.

How it works, step by step

Step 1 of 4
Platform planner

1. 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.

IRSA contract → owned state
Key numbers at this step
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-node in 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-node first: 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

Repeatable infrastructure control
Best for: Operate EKS with IRSA/Pod Identity, VPC CNI, ALB Controller, and managed nodes. A concrete incident check 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.

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.

Manual cluster mutation
Best for: Quickly testing the VPC CNI assumption 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; 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.

Managed cloud or platform service
Best for: Teams that need ALB Controller integrated with guardrails; the evidence path 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.

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-node without 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?
Interview tip: Interview sequence: state the invariant, 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, 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

Loading quiz

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.

Open DevOps Q&A →Tech Learn Q&A
Previous topic
Managed Kubernetes Overview (AWS EKS, Google GKE, Azure AKS)
Next topic
Google GKE Deep Dive (Autopilot vs Standard, Workload Identity, Gateway Controller)