From 8676bcf5b880b2fb19c6476084648dbe21a10445 Mon Sep 17 00:00:00 2001 From: Alex Litvinenko Date: Wed, 18 Dec 2024 20:17:54 +0100 Subject: [PATCH] Store the content of ConfigMap in the file with a different name --- content/en/docs/concepts/storage/volumes.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/en/docs/concepts/storage/volumes.md b/content/en/docs/concepts/storage/volumes.md index b431f62eb2..46b39dde87 100644 --- a/content/en/docs/concepts/storage/volumes.md +++ b/content/en/docs/concepts/storage/volumes.md @@ -179,11 +179,11 @@ 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`.