Skip to content

[Help] Command create podidentityassociation doesn't create SA for me #7507

@TreeKat71

Description

@TreeKat71

OS: macOS Monterey
eksctl: installed from homebrew, 0.169.0

Recently, the feature EKS Pod Identity was released, and I would like to understand the differences between eksctl create iamserviceaccount -f config.yaml and eksctl create podidentityassociation -f config.yaml. Because it seems inconsistent to me.


When I first used the create iamserviceaccount command with the yaml file below, eksctl created both a Service Account (SA) and an AWS Role for me.

iam:
  withOIDC: true    # Enable IRSA(IAM Roles for Service Accounts)
  serviceAccounts:
    - metadata:
        name: aws-load-balancer-controller
        namespace: kube-system
      wellKnownPolicies:
        awsLoadBalancerController: true

However, when I used the create podidentityassociation command with the yaml file below, eksctl only created a pod identity association and an AWS Role, but did not create a Service Account(it doesn't exist). I'm trying to understand if this behavior is expected.

iam:
  podIdentityAssociations:
    - namespace: kube-system
      serviceAccountName: aws-load-balancer-controller
      roleName: eks-aws-load-balancer-controller
      wellKnownPolicies:
        awsLoadBalancerController: true

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions