I ran `aws eks update-kubeconfig`, but I'm still getting the 'unauthorized' error. What could be the problem?

Responsive Ad Header

Question

Grade: Education Subject: Support
I ran `aws eks update-kubeconfig`, but I'm still getting the 'unauthorized' error. What could be the problem?
Asked by:
109 Viewed 109 Answers

Answer (109)

Best Answer
(423)
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.