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
回答済み 1年前
  • 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
回答済み 1年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ