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

后端 未结 12 545
别那么骄傲
别那么骄傲 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条回答
  •  一整个雨季
    2020-12-12 23:18

    This happens also to me with local environment on minikube, independently of EKS. My problem is related to this issue: https://github.com/kubernetes/kubernetes/issues/76774

    The solution i adopted is to remove the cache directories of kubectl: rm -rf ~/.kube/{cache,http-cache}. I guess is the only workaround at the time of writing.

提交回复
热议问题