You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/en/docs/concepts/scheduling-eviction/taint-and-toleration.md
+18-9Lines changed: 18 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -89,18 +89,23 @@ You can also use numeric comparison operators for threshold-based matching:
89
89
* the `operator` is `Gt` (greater than) and the toleration value is greater than the taint value, or
90
90
* the `operator` is `Lt` (less than) and the toleration value is less than the taint value.
91
91
92
-
For numeric operators, both the toleration and taint values must be valid integers. If either value cannot be parsed as an integer, the toleration does not match.
92
+
For numeric operators, both the toleration and taint values must be valid integers.
93
+
If either value cannot be parsed as an integer, the toleration does not match.
93
94
94
95
{{< note >}}
95
-
When you create a Pod that uses `Gt` or `Lt` tolerations operators, the API server validates that the toleration values are valid integers. Taint values on nodes are not validated at node registration time. If a node has a non-numeric taint value (for example, `servicelevel.organization.example/agreed-service-level=high:NoSchedule`), pods with numeric comparison
96
-
operators will not match that taint and cannot schedule on that node.
96
+
When you create a Pod that uses `Gt` or `Lt` tolerations operators, the API server validates that
97
+
the toleration values are valid integers. Taint values on nodes are not validated at node
98
+
registration time. If a node has a non-numeric taint value (for example,
pods with numeric comparison operators will not match that taint and cannot schedule on that node.
97
101
{{< /note >}}
98
102
99
103
{{< note >}}
100
104
101
105
There are two special cases:
102
106
103
-
If the `key` is empty, then the `operator` must be `Exists`, which matches all keys and values. Note that the `effect` still needs to be matched at the same time.
107
+
If the `key` is empty, then the `operator` must be `Exists`, which matches all keys and values.
108
+
Note that the `effect` still needs to be matched at the same time.
104
109
105
110
An empty `effect` matches all effects with key `key1`.
106
111
@@ -192,7 +197,9 @@ taint is removed before that time, the pod will not be evicted.
In addition to the `Equal` and `Exists` operators, you can use numeric comparison operators (`Gt` and `Lt`) to match taints with integer values. This is useful for threshold-based scheduling scenarios, such as matching nodes based on reliability levels or SLA requirements.
200
+
In addition to the `Equal` and `Exists` operators, you can use numeric comparison operators
201
+
(`Gt` and `Lt`) to match taints with integer values. This is useful for threshold-based scheduling
202
+
scenarios, such as matching nodes based on reliability levels or SLA requirements.
196
203
197
204
For example, if nodes are tainted with a value representing a service level agreement (SLA):
198
205
@@ -204,9 +211,10 @@ A pod can tolerate nodes with SLA greater than 900:
0 commit comments