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 →
aws sts get-caller-identityto check identityaws eks update-kubeconfig --name prod- Check the identity has an access entry or aws-auth mapping
- Check token expiry and clock skew
- 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.
More on EKS and cluster operations
How do you create a production-ready EKS cluster and what do you decide up front?BeginnerPods on EKS run out of IP addresses. What happened and how do you fix it?IntermediateHow do you give a new engineer access to an EKS cluster?IntermediateCompare managed node groups, self-managed nodes, Fargate and Karpenter.IntermediateHow do you upgrade an EKS cluster from 1.31 to 1.32 with minimal risk?AdvancedA node group upgrade is slow or stuck on EKS. What do you look at?Intermediate