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개 답변
0
수락된 답변

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
답변함 일 년 전
  • 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
답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠