Hi All,
I have an EKS cluster created by another IAM user which I need access to. So, I am trying to edit the Configmap “aws-auth” and add the relevant rolearn and userarn in the mapRoles and mapUsers section resp.
But when I run the kubectl apply -f configmap aws-auth or for that matter run any kubectl command, I am getting this error:
$ kubectl cluster-info
To further debug and diagnose cluster problems, use ‘kubectl cluster-info dump’.
error: You must be logged in to the server (Unauthorized)
I have also updated the kubeconfig with the relevant cluster details but nothing seems to be working. A little nudge here will definitely help.
Thanks,
Kunal