Skip to content

Commit d5bd60b

Browse files
authored
Merge pull request #86567 from mburke5678/nodes-fix-list-pod
OCPBUGS41925: Wrong queries in the documentation
2 parents f1be8c0 + cde3e70 commit d5bd60b

File tree

2 files changed

+8
-23
lines changed

2 files changed

+8
-23
lines changed

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

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -10,42 +10,28 @@ You can list all the pods on a specific node.
1010

1111
.Procedure
1212

13-
* To list all or selected pods on one or more nodes:
14-
+
15-
[source,terminal]
16-
----
17-
$ oc describe node <node1> <node2>
18-
----
19-
+
20-
For example:
21-
+
22-
[source,terminal]
23-
----
24-
$ oc describe node ip-10-0-128-218.ec2.internal
25-
----
26-
2713
* To list all or selected pods on selected nodes:
2814
+
2915
[source,terminal]
3016
----
31-
$ oc describe node --selector=<node_selector>
17+
$ oc get pod --selector=<nodeSelector>
3218
----
3319
+
3420
[source,terminal]
3521
----
36-
$ oc describe node --selector=kubernetes.io/os
22+
$ oc get pod --selector=kubernetes.io/os
3723
----
3824
+
3925
Or:
4026
+
4127
[source,terminal]
4228
----
43-
$ oc describe node -l=<pod_selector>
29+
$ oc get pod -l=<nodeSelector>
4430
----
4531
+
4632
[source,terminal]
4733
----
48-
$ oc describe node -l node-role.kubernetes.io/worker
34+
$ oc get pod -l kubernetes.io/os=linux
4935
----
5036
5137
* To list all pods on a specific node, including terminated pods:

modules/nodes-nodes-viewing-listing.adoc

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,10 @@ For example:
101101
$ oc describe node node1.example.com
102102
----
103103
+
104-
104+
--
105105
include::snippets/osd-aws-example-only.adoc[]
106-
106+
--
107+
+
107108
.Example output
108109
[source,text]
109110
----
@@ -210,14 +211,12 @@ Events: <11>
210211
<9> Information about the node host.
211212
<10> The pods on the node.
212213
<11> The events reported by the node.
213-
214+
+
214215
ifndef::openshift-rosa,openshift-rosa-hcp,openshift-dedicated[]
215-
216216
[NOTE]
217217
====
218218
The control plane label is not automatically added to newly created or updated master nodes. If you want to use the control plane label for your nodes, you can manually configure the label. For more information, see _Understanding how to update labels on nodes_ in the _Additional resources_ section.
219219
====
220-
221220
endif::openshift-rosa,openshift-rosa-hcp,openshift-dedicated[]
222221
223222
Among the information shown for nodes, the following node conditions appear in the output of the commands shown in this section:

0 commit comments

Comments
 (0)