Skip to content

Commit 94946c3

Browse files
committed
[zh-cn]sync runtime-class-v1
Signed-off-by: xin.li <[email protected]>
1 parent dc2d120 commit 94946c3

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

content/zh-cn/docs/reference/kubernetes-api/cluster-resources/runtime-class-v1.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,11 +142,13 @@ https://kubernetes.io/zh-cn/docs/concepts/containers/runtime-class/
142142
Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys.
143143
144144
- **scheduling.tolerations.operator** (string)
145-
Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category.
145+
Operator represents a key's relationship to the value. Valid operators are Exists, Equal, Lt, and Gt. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. Lt and Gt perform numeric comparisons (requires feature gate TaintTolerationComparisonOperators).
146146
147147
Possible enum values:
148148
- `"Equal"`
149149
- `"Exists"
150+
- `"Gt"`
151+
- `"Lt"`
150152
-->
151153

152154
- **scheduling.tolerations.key** (string)
@@ -156,13 +158,16 @@ https://kubernetes.io/zh-cn/docs/concepts/containers/runtime-class/
156158

157159
- **scheduling.tolerations.operator** (string)
158160

159-
`operator` 表示一个键与值的关系。有效的运算符为 `Exists``Equal`。默认为 `Equal`
161+
`operator` 表示一个键与值的关系。有效的运算符为 `Exists``Equal``Lt``Gt`。默认值为 `Equal`
160162
`Exists` 等价于将值设置为通配符的情况,因此一个 Pod 可以容忍特定类别的所有污点。
163+
`Lt``Gt` 执行数值比较(需要启用 TaintTolerationComparisonOperators 特性门控)。
161164

162165
可能的枚举值:
163166

164167
- `"Equal"`
165168
- `"Exists"`
169+
- `"Gt"`
170+
- `"Lt"`
166171

167172
<!--
168173
- **scheduling.tolerations.value** (string)

0 commit comments

Comments
 (0)