Debugging OCP 4 nodes with non-root user

Solution Verified - Updated -

Issue

  • Is it possible to debug OpenShift 4 nodes without the root user?
  • How to use the --as-root=false option with the oc debug node command?
  • When trying to debug a node with the --as-root=false option, the following message is shown:

    error: cannot debug [node_name]: can't debug nodes without running as the root user
    

Environment

  • Red Hat OpenShift Container Platform (RHOCP)
    • 4
  • oc CLI

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