Getting error while connecting EKS cluster error: You must be logged in to the server (Unauthorized)

0

Hi All, I have create a EKS cluster . and i am trying to connect this cluster from my local machine .I am getting this error while executing kubectl command .

Required your support .

]# kubectl describe -n kube-system configmap/aws-auth error: You must be logged in to the server (Unauthorized)

2 Answers
0
Accepted Answer

Did you update your kubeconfig ?

https://docs.aws.amazon.com/eks/latest/userguide/create-cluster.html Step 3

After you create your cluster with eksctl, you want to update your Kubeconfig with

aws eks update-kubeconfig --region region-code --name my-cluster
profile pictureAWS
Roly
answered a year ago
  • This file is updated .still facing same issue . aws eks update-kubeconfig --region eu-west-1 --name vikas1 Updated context arn:aws:eks:eu-west-1:912603790734:cluster/vikas1 in /root/.kube/config

0

Are you logged into AWS as well ? can you issue ?

aws s3 ls.

?

profile pictureAWS
Roly
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions