Sometimes get 'error: You must be logged in to the server (Unauthorized)' with 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?

Show comments

Submit an answer

This textbox defaults to using Markdown to format your answer.

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

Sign In or Sign Up to Answer