Skip to content

Commit 563f743

Browse files
author
Michael Burke
committed
Replacing source,terminal markup
1 parent 6129712 commit 563f743

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

modules/nodes-scheduler-node-selectors-pod.adoc

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,14 @@ To add a node selector to existing pods, determine the controlling object for th
2424
For example, the `router-default-66d5cf9464-m2g75` pod is controlled by the `router-default-66d5cf9464`
2525
replica set:
2626

27+
[source,terminal]
2728
----
2829
$ oc describe pod router-default-66d5cf9464-7pwkc
30+
----
2931

32+
.Example output
33+
[source,terminal]
34+
----
3035
Name: router-default-66d5cf9464-7pwkc
3136
Namespace: openshift-ingress
3237
@@ -38,6 +43,7 @@ Controlled By: ReplicaSet/router-default-66d5cf9464
3843

3944
The web console lists the controlling object under `ownerReferences` in the pod YAML:
4045

46+
[source,terminal]
4147
----
4248
# ...
4349
ownerReferences:
@@ -58,12 +64,14 @@ The web console lists the controlling object under `ownerReferences` in the pod
5864
5965
.. Run the following command to add labels to a `MachineSet` object:
6066
+
67+
[source,terminal]
6168
----
6269
$ oc patch MachineSet <name> --type='json' -p='[{"op":"add","path":"/spec/template/spec/metadata/labels", "value":{"<key>"="<value>","<key>"="<value>"}}]' -n openshift-machine-api
6370
----
6471
+
6572
For example:
6673
+
74+
[source,terminal]
6775
----
6876
$ oc patch MachineSet abc612-msrtw-worker-us-east-1c --type='json' -p='[{"op":"add","path":"/spec/template/spec/metadata/labels", "value":{"type":"user-node","region":"east"}}]' -n openshift-machine-api
6977
----
@@ -93,13 +101,14 @@ spec:
93101
+
94102
For example:
95103
+
104+
[source,terminal]
96105
----
97106
$ oc edit MachineSet abc612-msrtw-worker-us-east-1c -n openshift-machine-api
98107
----
99108
+
100109
.Example `MachineSet` object
101-
[source,yaml]
102110
+
111+
[source,yaml]
103112
----
104113
apiVersion: machine.openshift.io/v1beta1
105114
kind: MachineSet

0 commit comments

Comments
 (0)