User system:admin is unable to run `oc debug node/nodename`
Issue
- When running
oc debug node/nodenamewe are seeing an 'Unauthorized' error and the debug pod terminates immediately.
# oc debug node/ocp-node-1-example.com
Starting pod/ocp-nodeexamplecom-debug ...
To use host binaries, run `chroot /host`
Pod IP: 10.0.0.2
If you don't see a command prompt, try pressing enter.
Removing debug pod ...
error: unable to upgrade connection: Unauthorized
Environment
- OpenShift Container Platform (OCP) 4.2
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.