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)

preguntada hace un año395 visualizaciones
2 Respuestas
0
Respuesta aceptada

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 hace un año
  • 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 hace un año

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas