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 in AWS by akhtar
• 17,690 points
241 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 by MD
• 40,740 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 14, 2019 in AWS by heena
1,565 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
• 51,890 points
132 views
0 votes
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 in AWS by MD
• 40,740 points
181 views