IRSA vs EKS Pod Identity?
AdvancedConceptContainers and Serverless
Answer
IRSA uses the cluster's OIDC provider: a service account is annotated with a role ARN, the pod gets a projected token, and the SDK calls AssumeRoleWithWebIdentity. Each cluster needs an OIDC provider and each role's trust policy references that cluster's issuer, which becomes painful at scale.
Pod Identity uses an agent DaemonSet and an aws eks create-pod-identity-association; roles trust pods.eks.amazonaws.com once, are reusable across clusters, and support session tags. New workloads should use Pod Identity unless on Fargate or outside EKS.
More on Containers and Serverless
ECS vs EKS vs Fargate: what is the relationship?BeginnerWhat are ECS task definitions, tasks and services?BeginnerWhat are ECS capacity providers?IntermediateWhat is the difference between the ECS task role and the task execution role?IntermediateHow does `awsvpc` network mode work in ECS?IntermediateWhat deployment strategies does ECS support?Advanced