mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 12:46:18 +01:00
OCPBUGS41925: Wrong queries in the documentation
This commit is contained in:
committed by
openshift-cherrypick-robot
parent
6a3e1047c1
commit
4871e1fe35
@@ -10,42 +10,28 @@ You can list all the pods on a specific node.
|
||||
|
||||
.Procedure
|
||||
|
||||
* To list all or selected pods on one or more nodes:
|
||||
+
|
||||
[source,terminal]
|
||||
----
|
||||
$ oc describe node <node1> <node2>
|
||||
----
|
||||
+
|
||||
For example:
|
||||
+
|
||||
[source,terminal]
|
||||
----
|
||||
$ oc describe node ip-10-0-128-218.ec2.internal
|
||||
----
|
||||
|
||||
* To list all or selected pods on selected nodes:
|
||||
+
|
||||
[source,terminal]
|
||||
----
|
||||
$ oc describe node --selector=<node_selector>
|
||||
$ oc get pod --selector=<nodeSelector>
|
||||
----
|
||||
+
|
||||
[source,terminal]
|
||||
----
|
||||
$ oc describe node --selector=kubernetes.io/os
|
||||
$ oc get pod --selector=kubernetes.io/os
|
||||
----
|
||||
+
|
||||
Or:
|
||||
+
|
||||
[source,terminal]
|
||||
----
|
||||
$ oc describe node -l=<pod_selector>
|
||||
$ oc get pod -l=<nodeSelector>
|
||||
----
|
||||
+
|
||||
[source,terminal]
|
||||
----
|
||||
$ oc describe node -l node-role.kubernetes.io/worker
|
||||
$ oc get pod -l kubernetes.io/os=linux
|
||||
----
|
||||
|
||||
* To list all pods on a specific node, including terminated pods:
|
||||
|
||||
@@ -101,9 +101,10 @@ For example:
|
||||
$ oc describe node node1.example.com
|
||||
----
|
||||
+
|
||||
|
||||
--
|
||||
include::snippets/osd-aws-example-only.adoc[]
|
||||
|
||||
--
|
||||
+
|
||||
.Example output
|
||||
[source,text]
|
||||
----
|
||||
@@ -210,14 +211,12 @@ Events: <11>
|
||||
<9> Information about the node host.
|
||||
<10> The pods on the node.
|
||||
<11> The events reported by the node.
|
||||
|
||||
+
|
||||
ifndef::openshift-rosa,openshift-rosa-hcp,openshift-dedicated[]
|
||||
|
||||
[NOTE]
|
||||
====
|
||||
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.
|
||||
====
|
||||
|
||||
endif::openshift-rosa,openshift-rosa-hcp,openshift-dedicated[]
|
||||
|
||||
Among the information shown for nodes, the following node conditions appear in the output of the commands shown in this section:
|
||||
|
||||
Reference in New Issue
Block a user