Merge pull request #48053 from my-git9/pp-10825

[zh-cn] sync taint-and-toleration ephemeral-volumes
pull/48051/head
Kubernetes Prow Robot 2024-09-24 03:30:00 +01:00 committed by GitHub
commit 4133feba94
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 2 deletions

View File

@ -141,13 +141,15 @@ A toleration "matches" a taint if the keys are the same and the effects are the
<!--
There are two special cases:
An empty `key` with operator `Exists` matches all keys, values and effects which means this
will tolerate everything.
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.
An empty `effect` matches all effects with key `key1`.
-->
存在两种特殊情况:
如果 `key` 为空,那么 `operator` 必须是 `Exists`,匹配所有 key 和 value。
注意,同时 `effect` 仍然需要匹配。
如果一个容忍度的 `key` 为空且 `operator``Exists`
表示这个容忍度与任意的 key、value 和 effect 都匹配,即这个容忍度能容忍任何污点。

View File

@ -72,6 +72,8 @@ different purposes:
[downwardAPI](/docs/concepts/storage/volumes/#downwardapi),
[secret](/docs/concepts/storage/volumes/#secret): inject different
kinds of Kubernetes data into a Pod
- [image](/docs/concepts/storage/volumes/#image): allows mounting container image files or artifacts,
directly to a Pod.
- [CSI ephemeral volumes](#csi-ephemeral-volumes):
similar to the previous volume kinds, but provided by special {{< glossary_tooltip text="CSI" term_id="csi" >}} drivers
which specifically [support this feature](https://kubernetes-csi.github.io/docs/ephemeral-local-volumes.html)
@ -85,6 +87,8 @@ Kubernetes 为了不同的用途,支持几种不同类型的临时卷:
[downwardAPI](/zh-cn/docs/concepts/storage/volumes/#downwardapi)、
[secret](/zh-cn/docs/concepts/storage/volumes/#secret)
将不同类型的 Kubernetes 数据注入到 Pod 中
- [镜像](/zh-cn/docs/concepts/storage/volumes/#image)
允许将容器镜像文件或制品直接挂载到 Pod。
- [CSI 临时卷](#csi-ephemeral-volumes)
类似于前面的卷类型,但由专门[支持此特性](https://kubernetes-csi.github.io/docs/ephemeral-local-volumes.html)
的指定 {{< glossary_tooltip text="CSI" term_id="csi" >}} 驱动程序提供