Skip to content

Commit 05bbba8

Browse files
committed
fix: use spec.nodeName
1 parent ada7984 commit 05bbba8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/self-managed/operational-guides/troubleshooting/diagnostics.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ echo " - Collecting config map information (configuration data stored in the na
118118
kubectl get cm -n "$namespace" -o yaml > configmaps.yaml
119119

120120
echo " - Collecting node information:"
121-
for node in $(kubectl get pods -n "$namespace" -o wide --no-headers | awk '{print $7}' | sort | uniq); do
121+
for node in $(kubectl get pods -n "$namespace" -o custom-columns=":spec.nodeName" --no-headers | sort | uniq); do
122122
echo " - Collecting information for node: $node"
123123
kubectl describe node "$node" >> node-describe.txt
124124
echo "" >> node-describe.txt

0 commit comments

Comments
 (0)