Some oc commands like oc rsh, oc logs and oc debug fail with error unable to upgrade connection: Unauthorized in RHOCP 4
Issue
oc logs,oc rshandoc debugcommands fail:
error: unable to upgrade connection: Unauthorized- Also,
oc adm must-gatherfails with error:
error: You must be logged in to the server (the server has asked for the client to provide credentials ( pods/log pod_name))
Environment
- Red Hat OpenShift Container Platform (RHOCP) 4
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.