kubectl error You must be logged in to the server (Unauthorized) when accessing EKS cluster

后端 未结 12 541
别那么骄傲
别那么骄傲 2020-12-12 22:33

I have been trying to follow the getting started guide to EKS. When I tried to call kubectl get service I got the message: error: You must be logged in to the server (Unaut

12条回答
  •  -上瘾入骨i
    2020-12-12 23:22

    I got this error when I created the eks cluster using the root from the eks console. I recreated the eks cluster using an IAM user and use the access keys to update the aws configure. It worked. Now you can add additional IAM users to issue kubectl commands.

提交回复
热议问题