From a948d02e431a9ca5955867968cf7dd0c0e58126f Mon Sep 17 00:00:00 2001 From: Joan Edwards Date: Wed, 21 Feb 2024 06:43:31 -0500 Subject: [PATCH] add examples add examples head --- modules/about-must-gather.adoc | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/modules/about-must-gather.adoc b/modules/about-must-gather.adoc index edca95a8c0b1..6050fe8ed574 100644 --- a/modules/about-must-gather.adoc +++ b/modules/about-must-gather.adoc @@ -23,18 +23,15 @@ Alternatively, you can collect specific information by running the command with * To collect data related to one or more specific features, use the `--image` argument with an image, as listed in a following section. + -For example: -+ +.Example command [source,terminal,subs="attributes+"] ---- -$ oc adm must-gather \ - --image=registry.redhat.io/container-native-virtualization/cnv-must-gather-rhel9:v{HCOVersion} +$ oc adm must-gather --image=registry.redhat.io/openshift-gitops-1/must-gather-rhel8:v1.10.0 ---- * To collect the audit logs, use the `-- /usr/bin/gather_audit_logs` argument, as described in a following section. + -For example: -+ +.Example command [source,terminal] ---- $ oc adm must-gather -- /usr/bin/gather_audit_logs @@ -47,8 +44,7 @@ Audit logs are not collected as part of the default set of information to reduce When you run `oc adm must-gather`, a new pod with a random name is created in a new project on the cluster. The data is collected on that pod and saved in a new directory that starts with `must-gather.local`. This directory is created in the current working directory. -For example: - +.Example pod [source,terminal] ---- NAMESPACE NAME READY STATUS RESTARTS AGE @@ -60,10 +56,8 @@ openshift-must-gather-5drcj must-gather-s8sdh 2/2 Running 0 // todo: table or ref module listing available images? Optionally, you can run the `oc adm must-gather` command in a specific namespace by using the `--run-namespace` option. -For example: - +.Example command [source,terminal,subs="attributes+"] ---- -$ oc adm must-gather --run-namespace \ - --image=registry.redhat.io/container-native-virtualization/cnv-must-gather-rhel9:v{HCOVersion} +$ oc adm must-gather --image=registry.redhat.io/openshift-gitops-1/must-gather-rhel8:v1.10.0 ---- \ No newline at end of file