Question

Sometimes get 'error: You must be logged in to the server (Unauthorized)' with kubernetes

Posted June 17, 2021 674 views
Kubernetes

We have two kubernetes clusters set up that have been working fine for months. In the last few days, we occasionally get an error response when we try to run kubectl commands:

error: You must be logged in to the server (Unauthorized)

If we wait a few minutes and try the command again, it usually works the way it’s supposed to. How can we get rid of that error entirely?

1 comment
Submit an answer

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!