Question
I ran `aws eks update-kubeconfig`, but I'm still getting the 'unauthorized' error. What could be the problem?
Asked by: USER2976
109 Viewed
109 Answers
Answer (109)
Several things could be wrong. First, double-check that the AWS CLI is configured with the correct credentials (as above). Second, ensure you are using the correct cluster name and region. Third, verify that the IAM role or user used by the AWS CLI is mapped in the `aws-auth` ConfigMap with the correct Kubernetes RBAC roles. Finally, your system clock might be significantly out of sync, causing authentication failures.