Error: You must be logged in to the server (Unauthorized)
Jump to navigation
Jump to search
Error: You must be logged in to the server (Unauthorized)
Solution, read:
- https://aws.amazon.com/premiumsupport/knowledge-center/eks-api-server-unauthorized-error/
aws eks update-kubeconfig --name eks-cluster-name
- Review you are using the same AWS credentials that the user that created the cluster:
terraform show | grep -A4 aws_caller_identity
Solution:
terraform show: aws_caller_identity
Related[edit]
kubectl version
kubectl get nodes, kubectl get pods
kubectl config use-context
ExpiredTokenException
aws iam get-user
aws eks get-token
aws sts get-caller-identity
use_custom_launch_template
- Terraform EKS module
enable_irsa
Failed to create new replica set
See also[edit]
- Kubernetes service account, ServiceAccount:,
kubectl get serviceaccounts, kubectl create serviceaccount, kubectl describe serviceaccount
,kubernetes.io/service-account-token
, Kubernetes users, Kubernetes groups, Kubernetes roles,ServiceAccountTokenNodeBinding
- Kubernetes Authentication,
kubectl create serviceaccount, kubectl get serviceaccounts, CertificateSigningRequest, aws-auth
, bearer tokens, EKS Authentication
Advertising: