User system:admin is unable to run `oc debug node/nodename`

Solution Verified - Updated -

Issue

  • When running oc debug node/nodename we 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.

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