Collecting must-gather via node when ssh is unavailable
Issue
- How can I run
oc adm must-gather
on a specific OpenShift node, especially when direct client execution is challenging or I need to ensure the collection is initiated from that node's environment? - What are the steps to execute
oc adm must-gather
, save its output within a debug pod on a particular node, and then package this output? - How do I copy a generated tarball (e.g., from
must-gather
) from an OpenShift node's debug pod to my local machine for analysis or for uploading to a support case?
Environment
- OpenShift Container Platform (OCP) 4.x
oc
(OpenShift Command Line Interface) tool- A specific worker or control plane node within the OCP cluster that requires diagnostics.
- A local workstation with
oc
CLI access to the cluster.
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.