The IAM roles for service accounts feature is available on new Amazon EKS Kubernetes version 1.14 clusters, and clusters that were updated to versions 1.14 or 1.13 on or after September 3rd, 2019.
kubectl version --short
1.14 | 1.13 |
---|---|
Client Version: v1.14.6-eks-5047ed | Client Version: v1.13.7 |
Server Version: v1.14.6-eks-5047ed | Server Version: v1.13.10-eks-5ac0f1 |
If your EKS cluster version is lower or not match with above, updating an Amazon EKS Cluster in the User Guide
aws --version
If your aws cli version is lower than 1.16.232, use Installing the AWS CLI in the User Guide
aws eks describe-cluster --name eksworkshop-eksctl --query cluster.identity.oidc.issuer --output text