Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[zh] Use a path different from the key in the ConfigMap #49204

Merged
merged 1 commit into from
Dec 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions content/zh-cn/docs/concepts/storage/volumes.md
Original file line number Diff line number Diff line change
Expand Up @@ -322,17 +322,17 @@ spec:
name: log-config
items:
- key: log_level
path: log_level
path: log_level.conf
```

<!--
The `log-config` ConfigMap is mounted as a volume, and all contents stored in
its `log_level` entry are mounted into the Pod at path `/etc/config/log_level`.
its `log_level` entry are mounted into the Pod at path `/etc/config/log_level.conf`.
Note that this path is derived from the volume's `mountPath` and the `path`
keyed with `log_level`.
-->
`log-config` ConfigMap 以卷的形式挂载,并且存储在 `log_level`
条目中的所有内容都被挂载到 Pod 的 `/etc/config/log_level` 路径下。
条目中的所有内容都被挂载到 Pod 的 `/etc/config/log_level.conf` 路径下。
请注意,这个路径来源于卷的 `mountPath` 和 `log_level` 键对应的 `path`。

{{< note >}}
Expand Down