Skip to content

Commit

Permalink
Merge pull request kubernetes#49155 from aazon/configmap_volume
Browse files Browse the repository at this point in the history
Use a path different from the key in the ConfigMap
  • Loading branch information
k8s-ci-robot authored Dec 19, 2024
2 parents c9e324d + 8676bcf commit 8a1bb4c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions content/en/docs/concepts/storage/volumes.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.

Expand Down

0 comments on commit 8a1bb4c

Please sign in to comment.