I have created one kubernetes cluster on EKS. I used eksctl create cluster to create the cluster. I am able to access everything which is great.
However, my colleague has created another cluster, and I am wondering how will I generate / get Kubeconfigs so that I can point to the cluster that my colleague has created.
There are 2 ways you can get the kubeconfig.
aws eks update-kubeconfig --name <clustername> --region <region>
eksctl utils write-kubeconfig --cluster=<clustername>
Provided you have the EKS on the same account and visible to you.
Once you get the kubeconfig, if you have the access, then you can start using kubectl.
If you don't have access, you need to ask the owner to give your userID permissions to the cluster.
Complete details are listed here