Skip to content

Commit 8a1bb4c

Browse files
authored
Merge pull request #49155 from aazon/configmap_volume
Use a path different from the key in the ConfigMap
2 parents c9e324d + 8676bcf commit 8a1bb4c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

content/en/docs/concepts/storage/volumes.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,11 +179,11 @@ spec:
179179
name: log-config
180180
items:
181181
- key: log_level
182-
path: log_level
182+
path: log_level.conf
183183
```
184184
185185
The `log-config` ConfigMap is mounted as a volume, and all contents stored in
186-
its `log_level` entry are mounted into the Pod at path `/etc/config/log_level`.
186+
its `log_level` entry are mounted into the Pod at path `/etc/config/log_level.conf`.
187187
Note that this path is derived from the volume's `mountPath` and the `path`
188188
keyed with `log_level`.
189189

0 commit comments

Comments
 (0)