From a482992f1b2b3a52752bc5376df3bf75f0e2b220 Mon Sep 17 00:00:00 2001 From: Arhell Date: Mon, 23 Dec 2024 00:12:34 +0200 Subject: [PATCH] [zh] Use a path different from the key in the ConfigMap --- content/zh-cn/docs/concepts/storage/volumes.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/content/zh-cn/docs/concepts/storage/volumes.md b/content/zh-cn/docs/concepts/storage/volumes.md index eebecc18b56fb..8f5fa6c89f0ae 100644 --- a/content/zh-cn/docs/concepts/storage/volumes.md +++ b/content/zh-cn/docs/concepts/storage/volumes.md @@ -322,17 +322,17 @@ spec: name: log-config items: - key: log_level - path: log_level + path: log_level.conf ``` `log-config` ConfigMap 以卷的形式挂载,并且存储在 `log_level` -条目中的所有内容都被挂载到 Pod 的 `/etc/config/log_level` 路径下。 +条目中的所有内容都被挂载到 Pod 的 `/etc/config/log_level.conf` 路径下。 请注意,这个路径来源于卷的 `mountPath` 和 `log_level` 键对应的 `path`。 {{< note >}}