Skip to content

Commit 81bd2e0

Browse files
committed
Collect storage information along with ingress
Signed-off-by: Shiva Krishna, Merla <smerla@nvidia.com>
1 parent 8917ff5 commit 81bd2e0

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

hack/must-gather.sh

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ $K get nodes -l nvidia.com/gpu.present=true -o wide > "$ARTIFACT_DIR/cluster/gpu
6969
echo "Gathering GPU node descriptions"
7070
$K describe nodes -l nvidia.com/gpu.present=true > "$ARTIFACT_DIR/cluster/gpu_nodes.descr" || true
7171

72+
7273
######################################
7374
# NIM OPERATOR PODS
7475
######################################
@@ -86,6 +87,25 @@ for pod in $( ); do
8687
$K describe "$pod" -n "$OPERATOR_NAMESPACE" > "$ARTIFACT_DIR/operator/${pod_name}.descr" || true
8788
done
8889

90+
######################################
91+
# STORAGE CLASSES, PVs, PVCs
92+
######################################
93+
echo "Gathering storage class, PVC and PV information"
94+
mkdir -p "$ARTIFACT_DIR/storage"
95+
96+
$K get storageclass -oyaml > "$ARTIFACT_DIR/storage/storageclasses.yaml" || true
97+
$K get pv -oyaml > "$ARTIFACT_DIR/storage/persistentvolumes.yaml" || true
98+
99+
echo "Gathering PVCs from NIM_NAMESPACE: $NIM_NAMESPACE"
100+
mkdir -p "$ARTIFACT_DIR/storage/nim"
101+
$K get pvc -n "$NIM_NAMESPACE" -oyaml > "$ARTIFACT_DIR/storage/nim/pvcs.yaml" || true
102+
103+
if [[ -n "${NEMO_NAMESPACE:-}" ]]; then
104+
echo "Gathering PVCs from NEMO_NAMESPACE: $NEMO_NAMESPACE"
105+
mkdir -p "$ARTIFACT_DIR/storage/nemo"
106+
$K get pvc -n "$NEMO_NAMESPACE" -oyaml > "$ARTIFACT_DIR/storage/nemo/pvcs.yaml" || true
107+
fi
108+
89109
######################################
90110
# NIM SERVICE & CACHE
91111
######################################
@@ -119,6 +139,10 @@ for pod in $($K get pods -n "$NIM_NAMESPACE" -l "app.kubernetes.io/part-of=nim-s
119139
$K describe "$pod" -n "$NIM_NAMESPACE" > "$ARTIFACT_DIR/nim/${pod_name}.descr" || true
120140
done
121141

142+
echo "Gathering Ingress configuration from $NIM_NAMESPACE"
143+
mkdir -p "$ARTIFACT_DIR/nim/ingress"
144+
$K get ingress -n "$NIM_NAMESPACE" -oyaml > "$ARTIFACT_DIR/nim/ingress/ingress.yaml" || true
145+
122146
######################################
123147
# NEMO MICROSERVICES
124148
######################################
@@ -144,6 +168,10 @@ if [[ -n "${NEMO_NAMESPACE:-}" ]]; then
144168
$K logs "$pod" -n "$NEMO_NAMESPACE" --all-containers --prefix > "$ARTIFACT_DIR/nemo/${pod_name}.log" || true
145169
$K describe "$pod" -n "$NEMO_NAMESPACE" > "$ARTIFACT_DIR/nemo/${pod_name}.descr" || true
146170
done
171+
172+
echo "Gathering Ingress configuration from $NEMO_NAMESPACE"
173+
mkdir -p "$ARTIFACT_DIR/nemo/ingress"
174+
$K get ingress -n "$NEMO_NAMESPACE" -oyaml > "$ARTIFACT_DIR/nemo/ingress/ingress.yaml" || true
147175
else
148176
echo "Skipping NeMo microservice collection. NEMO_NAMESPACE not set."
149177
fi

0 commit comments

Comments
 (0)