kubeconfig - oc commands: error: You must be logged in to the server (Unauthorized) in OCP 4
Issue
- Unable to run any
occommands usingKUBECONFIGvariable. - Unable to run any
occommands using the--kubeconfig=<path>option. -
All
occommands throws the following error:error: You must be logged in to the server (Unauthorized)
Environment
- Red Hat OpenShift Container Platform (RHOCP)
- 4
occlient tool
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.