Could you use kubectl cluster-info
to verify if you are accessing the same EKS cluster from cloudshell and your terminal? The output shows the EKS apiserver endpoint address.
Also, I noticed that you use --profile
when doing update-kubeconfig
, are you using the same profile when executing all commands?
Another thing you can try is kubectl get node -v=9
and compare output from cloudshell and terminal.
To answer all your questions:
If your admin user is whom you used to execute eksctl create
command, then you will be fine. The cluster creator will be granted access permission automatically. You don't need to manually configure it.
If you want to grant access to other IAM users, EKS provides 2 ways to do that. The aws-auth
configmap and EKS IAM Access Entries (or called EKS API).
I would suggest you to use EKS IAM Access Entries, since it is more simple way to configure it.