@@ -104,17 +104,27 @@ definition to create an [immutable ConfigMap](#configmap-immutable).
104
104
You can write a Pod `spec` that refers to a ConfigMap and configures the container(s)
105
105
in that Pod based on the data in the ConfigMap. The Pod and the ConfigMap must be in
106
106
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.
111
107
-->
112
108
## ConfigMaps 和 Pods
113
109
114
110
你可以写一个引用 ConfigMap 的 Pod 的 ` spec ` ,并根据 ConfigMap 中的数据
115
111
在该 Pod 中配置容器。这个 Pod 和 ConfigMap 必须要在同一个
116
112
{{< glossary_tooltip text="名字空间" term_id="namespace" >}} 中。
117
113
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
+ -->
118
128
这是一个 ConfigMap 的示例,它的一些键只有一个值,其他键的值看起来像是
119
129
配置的片段格式。
120
130
@@ -381,6 +391,13 @@ ConfigMaps consumed as environment variables are not updated automatically and r
381
391
以环境变量方式使用的 ConfigMap 数据不会被自动更新。
382
392
更新这些数据需要重新启动 Pod。
383
393
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
+
384
401
<!--
385
402
# # Immutable ConfigMaps {#configmap-immutable}
386
403
-->
0 commit comments