Skip to content

Commit 15c0623

Browse files
authored
Merge pull request #30806 from stevsmit/BZ1877372
Adds note to list all pods on a specific node
2 parents 4487621 + a9c064d commit 15c0623

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

modules/nodes-nodes-viewing-listing-pods.adoc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,10 @@ $ oc describe -l=<pod_selector>
4646
----
4747
$ oc describe node -l node-role.kubernetes.io/worker
4848
----
49+
50+
* To list all pods on a specific node, including terminated pods:
51+
+
52+
[source,terminal]
53+
----
54+
$ oc get pod --all-namespaces --field-selector=spec.nodeName=<nodename>
55+
----

0 commit comments

Comments
 (0)