Skip to content

Commit 500a637

Browse files
authored
Merge pull request #62753 from petr-muller/tolerations-on-pods
Fix mixed up Pods and Nodes in taint/toleration examples
2 parents a425108 + 0ba2a05 commit 500a637

6 files changed

+19
-19
lines changed

modules/nodes-scheduler-taints-tolerations-about.adoc

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ You apply taints to a node through the `Node` specification (`NodeSpec`) and app
1818
apiVersion: v1
1919
kind: Node
2020
metadata:
21-
name: my-pod
21+
name: my-node
2222
#...
2323
spec:
2424
taints:
@@ -32,7 +32,7 @@ spec:
3232
[source,yaml]
3333
----
3434
apiVersion: v1
35-
kind: Node
35+
kind: Pod
3636
metadata:
3737
name: my-pod
3838
#...
@@ -104,7 +104,7 @@ metadata:
104104
annotations:
105105
machine.openshift.io/machine: openshift-machine-api/ci-ln-62s7gtb-f76d1-v8jxv-master-0
106106
machineconfiguration.openshift.io/currentConfig: rendered-master-cdc1ab7da414629332cc4c3926e6e59c
107-
name: my-pod
107+
name: my-node
108108
#...
109109
spec:
110110
taints:
@@ -151,7 +151,7 @@ You can specify how long a pod can remain bound to a node before being evicted b
151151
[source,yaml]
152152
----
153153
apiVersion: v1
154-
kind: Node
154+
kind: Pod
155155
metadata:
156156
name: my-pod
157157
#...
@@ -209,7 +209,7 @@ $ oc adm taint nodes node1 key2=value2:NoSchedule
209209
[source,yaml]
210210
----
211211
apiVersion: v1
212-
kind: Node
212+
kind: Pod
213213
metadata:
214214
name: my-pod
215215
#...
@@ -276,7 +276,7 @@ For more information, see link:https://kubernetes.io/docs/concepts/architecture/
276276
[source,yaml]
277277
----
278278
apiVersion: v1
279-
kind: Node
279+
kind: Pod
280280
metadata:
281281
name: my-pod
282282
#...
@@ -314,7 +314,7 @@ Pods with this toleration are not removed from a node that has taints.
314314
[source,yaml]
315315
----
316316
apiVersion: v1
317-
kind: Node
317+
kind: Pod
318318
metadata:
319319
name: my-pod
320320
#...

modules/nodes-scheduler-taints-tolerations-adding-machineset.adoc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ You can add taints to nodes using a compute machine set. All nodes associated wi
1717
[source,yaml]
1818
----
1919
apiVersion: v1
20-
kind: Node
20+
kind: Pod
2121
metadata:
2222
name: my-pod
2323
#...
@@ -39,7 +39,7 @@ For example:
3939
[source,yaml]
4040
----
4141
apiVersion: v1
42-
kind: Node
42+
kind: Pod
4343
metadata:
4444
name: my-pod
4545
#...
@@ -66,10 +66,10 @@ $ oc edit machineset <machineset>
6666
.Example taint in a compute machine set specification
6767
[source,yaml]
6868
----
69-
apiVersion: v1
70-
kind: Node
69+
apiVersion: machine.openshift.io/v1beta1
70+
kind: MachineSet
7171
metadata:
72-
name: my-pod
72+
name: my-machineset
7373
#...
7474
spec:
7575
#...

modules/nodes-scheduler-taints-tolerations-adding.adoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ You add tolerations to pods and taints to nodes to allow the node to control whi
1717
[source,yaml]
1818
----
1919
apiVersion: v1
20-
kind: Node
20+
kind: Pod
2121
metadata:
2222
name: my-pod
2323
#...
@@ -39,11 +39,11 @@ For example:
3939
[source,yaml]
4040
----
4141
apiVersion: v1
42-
kind: Node
42+
kind: Pod
4343
metadata:
4444
name: my-pod
4545
#...
46-
spec:
46+
spec:
4747
tolerations:
4848
- key: "key1"
4949
operator: "Exists" <1>
@@ -85,7 +85,7 @@ metadata:
8585
annotations:
8686
machine.openshift.io/machine: openshift-machine-api/ci-ln-62s7gtb-f76d1-v8jxv-master-0
8787
machineconfiguration.openshift.io/currentConfig: rendered-master-cdc1ab7da414629332cc4c3926e6e59c
88-
name: my-pod
88+
name: my-node
8989
#...
9090
spec:
9191
taints:

modules/nodes-scheduler-taints-tolerations-binding.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ You can alternatively apply the following YAML to add the taint:
3333
kind: Node
3434
apiVersion: v1
3535
metadata:
36-
name: my-pod
36+
name: my-node
3737
#...
3838
spec:
3939
taints:

modules/nodes-scheduler-taints-tolerations-removing.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ node/ip-10-0-132-248.ec2.internal untainted
3838
[source,yaml]
3939
----
4040
apiVersion: v1
41-
kind: Node
41+
kind: Pod
4242
metadata:
4343
name: my-pod
4444
#...

modules/nodes-scheduler-taints-tolerations-special.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ For example:
2222
[source,yaml]
2323
----
2424
apiVersion: v1
25-
kind: Node
25+
kind: Pod
2626
metadata:
2727
name: my-pod
2828
#...

0 commit comments

Comments
 (0)