I create a EKS cluster in AWS and use this command to create a service account eksctl create iamserviceaccount --name alb-ingress-controller --cluster $componentName --attach-policy-arn $serviceRoleArn --approve --override-existing-serviceaccounts
.
The output of the command is:
[?] using region ap-southeast-2
[?] 1 existing iamserviceaccount(s) (default/alb-ingress-controller) will be excluded
[?] 1 iamserviceaccount (default/alb-ingress-controller) was excluded (based on the include/exclude rules)
[!] metadata of serviceaccounts that exist in Kubernetes will be updated, as --override-existing-serviceaccounts was set
[?] no tasks
I am not sure whether it is created successfully or not.
I use this command eksctl get iamserviceaccount
to verify the result but get an error response:
Error: getting iamserviceaccounts: no output "Role1" in stack "eksctl-monitor-addon-iamserviceaccount-default-alb-ingress-controller"
I also tried to run kubectl get serviceaccount
but I got the error: Error from server (NotFound): serviceaccounts "alb-ingress-controller" not found
.
Does this mean the service account failed to create? Where can I view the service account in AWS console? or where can I view the error?
question from:https://stackoverflow.com/questions/65642474/where-can-i-view-service-account-created-by-eksctl