Skip to content

Commit 6b65917

Browse files
committed
OCPBUGS-7176: Add toleratio value as reserved
1 parent cb4478f commit 6b65917

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

modules/binding-infra-node-workloads-using-taints-tolerations.adoc

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,14 @@ This example shows that the node has a taint. You can proceed with adding a tole
4646
+
4747
[source,terminal]
4848
----
49-
$ oc adm taint nodes <node_name> <key>:<effect>
49+
$ oc adm taint nodes <node_name> <key>=<value>:<effect>
5050
----
5151
+
5252
For example:
5353
+
5454
[source,terminal]
5555
----
56-
$ oc adm taint nodes node1 node-role.kubernetes.io/infra:NoSchedule
56+
$ oc adm taint nodes node1 node-role.kubernetes.io/infra=reserved:NoExecute
5757
----
5858
+
5959
[TIP]
@@ -71,7 +71,8 @@ metadata:
7171
spec:
7272
taints:
7373
- key: node-role.kubernetes.io/infra
74-
effect: NoSchedule
74+
effect: NoExecute
75+
value: reserved
7576
...
7677
----
7778
====
@@ -88,13 +89,15 @@ If a descheduler is used, pods violating node taints could be evicted from the c
8889
[source,yaml]
8990
----
9091
tolerations:
91-
- effect: NoSchedule <1>
92+
- effect: NoExecute <1>
9293
key: node-role.kubernetes.io/infra <2>
9394
operator: Exists <3>
95+
value: reserved <4>
9496
----
9597
<1> Specify the effect that you added to the node.
9698
<2> Specify the key that you added to the node.
9799
<3> Specify the `Exists` Operator to require a taint with the key `node-role.kubernetes.io/infra` to be present on the node.
100+
<4> Specify the value of the key-value pair taint that you added to the node.
98101
+
99102
This toleration matches the taint created by the `oc adm taint` command. A pod with this toleration can be scheduled onto the infra node.
100103
+

0 commit comments

Comments
 (0)