kubeconfig file, error: "You must be logged in to the server (Unauthorized)"

Solution In Progress - Updated -


  • On several instances using kubeconfig file to authenticate to the Openshift environment you get the following error:
  • "error: You must be logged in to the server (Unauthorized)".
  • In the past when re-created kubeconfig file and authentication successful.
  • Seems like the kubeconfig file will only works for about a month.


OpenShift Container Platform 4.6

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content