Store the content of ConfigMap in the file with a different name
parent
63a56ab67c
commit
8676bcf5b8
|
@ -179,11 +179,11 @@ spec:
|
||||||
name: log-config
|
name: log-config
|
||||||
items:
|
items:
|
||||||
- key: log_level
|
- key: log_level
|
||||||
path: log_level
|
path: log_level.conf
|
||||||
```
|
```
|
||||||
|
|
||||||
The `log-config` ConfigMap is mounted as a volume, and all contents stored in
|
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`
|
Note that this path is derived from the volume's `mountPath` and the `path`
|
||||||
keyed with `log_level`.
|
keyed with `log_level`.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue