Interview Prep/AWS/EKS in Production

IRSA or EKS Pod Identity for new clusters?

IntermediateProductionEKS in Production
Answer

Pod Identity for new EC2-based clusters: no per-cluster OIDC provider, no trust policy edits with cluster-specific OIDC URLs, the same role can be reused across clusters, and session tags (cluster, namespace, service account) enable ABAC. You install the eks-pod-identity-agent add-on and create associations:

aws eks create-pod-identity-association --cluster-name prod \
  --namespace orders --service-account orders-api \
  --role-arn arn:aws:iam::111122223333:role/orders-api

The role trusts pods.eks.amazonaws.com with sts:AssumeRole and sts:TagSession. Keep IRSA for Fargate pods and for tooling that does not yet support Pod Identity.

aws All AWS questions Roadmap: EKS, ECS & serverless on AWS

More on EKS in Production