Merge pull request #49240 from Arhell/fr-path

[fr] Use a path different from the key in the ConfigMap
pull/49242/head
Kubernetes Prow Robot 2024-12-26 23:40:11 +01:00 committed by GitHub
commit 484678926a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -239,11 +239,11 @@ spec:
name: log-config
items:
- key: log_level
path: log_level
path: log_level.conf
```
La ConfigMap `log-config` est montée comme un volume et tout le contenu stocké dans son entrée `log_level`
est monté dans le Pod au chemin "`/etc/config/log_level`".
est monté dans le Pod au chemin "`/etc/config/log_level.conf`".
À noter que ce chemin est dérivé du `mountPath` du volume et le `path` est étiqueté avec la clef `log_level`.
{{< caution >}}