Skip to content

Commit 89e2fa2

Browse files
authored
Merge pull request #31691 from mengjiao-liu/sync_configmap_zh
[zh]Resync concepts configuration configmap file
2 parents f806c6a + 15a8827 commit 89e2fa2

File tree

1 file changed

+21
-4
lines changed

1 file changed

+21
-4
lines changed

content/zh/docs/concepts/configuration/configmap.md

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,17 +104,27 @@ definition to create an [immutable ConfigMap](#configmap-immutable).
104104
You can write a Pod `spec` that refers to a ConfigMap and configures the container(s)
105105
in that Pod based on the data in the ConfigMap. The Pod and the ConfigMap must be in
106106
the same {{< glossary_tooltip text="namespace" term_id="namespace" >}}.
107-
108-
Here's an example ConfigMap that has some keys with single values,
109-
and other keys where the value looks like a fragment of a configuration
110-
format.
111107
-->
112108
## ConfigMaps 和 Pods
113109

114110
你可以写一个引用 ConfigMap 的 Pod 的 `spec`,并根据 ConfigMap 中的数据
115111
在该 Pod 中配置容器。这个 Pod 和 ConfigMap 必须要在同一个
116112
{{< glossary_tooltip text="名字空间" term_id="namespace" >}} 中。
117113

114+
<!--
115+
The `spec` of a {{< glossary_tooltip text="static Pod" term_id="static-pod" >}} cannot refer to a ConfigMap
116+
or any other API objects.
117+
-->
118+
{{< note >}}
119+
{{< glossary_tooltip text="静态 Pod" term_id="static-pod" >}} 中的 `spec`
120+
字段不能引用 ConfigMap 或任何其他 API 对象。
121+
{{< /note >}}
122+
123+
<!--
124+
Here's an example ConfigMap that has some keys with single values,
125+
and other keys where the value looks like a fragment of a configuration
126+
format.
127+
-->
118128
这是一个 ConfigMap 的示例,它的一些键只有一个值,其他键的值看起来像是
119129
配置的片段格式。
120130

@@ -381,6 +391,13 @@ ConfigMaps consumed as environment variables are not updated automatically and r
381391
以环境变量方式使用的 ConfigMap 数据不会被自动更新。
382392
更新这些数据需要重新启动 Pod。
383393

394+
<!--
395+
A container using a ConfigMap as a [subPath](/docs/concepts/storage/volumes#using-subpath) volume mount will not receive ConfigMap updates.
396+
-->
397+
{{< note >}}
398+
使用 ConfigMap 作为 [subPath](/zh/docs/concepts/storage/volumes#using-subpath) 卷挂载的容器将不会收到 ConfigMap 的更新。
399+
{{< /note >}}
400+
384401
<!--
385402
## Immutable ConfigMaps {#configmap-immutable}
386403
-->

0 commit comments

Comments
 (0)