Skip to content

Commit a482992

Browse files
committed
[zh] Use a path different from the key in the ConfigMap
1 parent c73038c commit a482992

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

content/zh-cn/docs/concepts/storage/volumes.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -322,17 +322,17 @@ spec:
322322
name: log-config
323323
items:
324324
- key: log_level
325-
path: log_level
325+
path: log_level.conf
326326
```
327327
328328
<!--
329329
The `log-config` ConfigMap is mounted as a volume, and all contents stored in
330-
its `log_level` entry are mounted into the Pod at path `/etc/config/log_level`.
330+
its `log_level` entry are mounted into the Pod at path `/etc/config/log_level.conf`.
331331
Note that this path is derived from the volume's `mountPath` and the `path`
332332
keyed with `log_level`.
333333
-->
334334
`log-config` ConfigMap 以卷的形式挂载,并且存储在 `log_level`
335-
条目中的所有内容都被挂载到 Pod 的 `/etc/config/log_level` 路径下。
335+
条目中的所有内容都被挂载到 Pod 的 `/etc/config/log_level.conf` 路径下。
336336
请注意,这个路径来源于卷的 `mountPath` 和 `log_level` 键对应的 `path`。
337337

338338
{{< note >}}

0 commit comments

Comments
 (0)