Interview Prep/Kubernetes/EKS and cluster operations

kubectl on a laptop shows `You must be logged in to the server (Unauthorized)`. What do you do on EKS?

IntermediateScenarioEKS and cluster operations
Answer

Situation read → Access broke after a role change.

What I'd do →

  1. aws sts get-caller-identity to check identity
  2. aws eks update-kubeconfig --name prod
  3. Check the identity has an access entry or aws-auth mapping
  4. Check token expiry and clock skew
  5. Check the assumed role ARN versus the mapped one

Why → Authentication maps an IAM principal to a Kubernetes user.

Interview tip → Role ARNs in mappings must not include the path.

All Kubernetes questions Roadmap: Kubernetes networking, storage & scaling

More on EKS and cluster operations