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 Respostas
0
Resposta aceita

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
respondido há um ano
  • 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
respondido há um ano

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas