Store the content of ConfigMap in the file with a different name

pull/49155/head
Alex Litvinenko 2024-12-18 20:17:54 +01:00
parent 63a56ab67c
commit 8676bcf5b8
No known key found for this signature in database
1 changed files with 2 additions and 2 deletions

View File

@ -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`.