eksctl icon indicating copy to clipboard operation
eksctl copied to clipboard

Unable to configure kube-system/aws-node IRSA with eksctl 0.29.0.

Open cw-sakamoto opened this issue 6 years ago • 1 comments

What happened?

In this document, the following command to configure IRSA for aws-node results in an error.

% eksctl create iamserviceaccount \
    --name aws-node \
    --namespace kube-system \
    --cluster mycluster \
    --attach-policy-arn arn:aws:iam::aws:policy/AmazonEKS_CNI_Policy \
    --approve \
    --override-existing-serviceaccounts
Error: <namespace>/<name> of iam.serviceAccounts[1] "kube-system/aws-node" is not unique

It was working in 0.28.1, ... is it an unexpected error?

What you expected to happen?

  • I want the same commands to work in 0.29.0.
    • If it's no longer needed in 0.29.0 withOICD, then it's fine.

cw-sakamoto avatar Oct 02 '20 03:10 cw-sakamoto

@cw-sakamoto please check if the service account exists already and has the corresponding annotation. If the cluster was created with version >= 0.28.0-rc.0 and withOIDC then create iamserviceaccount isn't necessary for aws-node. We'll improve the docs on this.

michaelbeaumont avatar Oct 02 '20 06:10 michaelbeaumont