error You must be logged in to the server Unauthorized

0 votes

Hi Guys,

I have launched one EKS Cluster in AWS. But it is showing me the below error when I try to run the Kubectl command.

$ kubectl get all
error: You must be logged in to the server (Unauthorized)

How can I solve this error?

Jul 9, 2020 in AWS by akhtar
• 38,230 points
7,591 views

1 answer to this question.

0 votes

Hi@akhtar,

It seems you did not set your cluster credentials for the Kubectl command. You can use the below-given command to solve this error.

$ aws eks update-kubeconfig --name cluster_name

I hope this will solve your error.

answered Jul 9, 2020 by MD
• 95,440 points

Related Questions In AWS

0 votes
1 answer

What are the naming rules to be followed in DynamoDB?

There are certain rules that needs to ...READ MORE

answered Feb 15, 2019 in AWS by heena
9,254 views
0 votes
1 answer

permissions related to AWS ECR

if you add allowContainerRegistry: true, kops will add those permissions ...READ MORE

answered Oct 9, 2018 in Kubernetes by Kalgi
• 52,360 points
927 views
+1 vote
1 answer
0 votes
1 answer

"access denied" error when trying to move a file into the AWS server.

Hi@akhtar, I think you are trying to transfer file to ...READ MORE

answered Apr 2, 2020 in AWS by MD
• 95,440 points
1,406 views
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP