eksctl
eksctl copied to clipboard
Unable to configure kube-system/aws-node IRSA with eksctl 0.29.0.
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.0withOICD, then it's fine.
- If it's no longer needed in
@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.