Expose configuration under a volume mount path.
Section: ConfigMaps
Mount ConfigMap as files
yaml
yaml
volumes:
- name: app-config
configMap:
name: nginx-config
containers:
- name: nginx
image: nginx:1.27
volumeMounts:
- name: app-config
mountPath: /etc/nginx/conf.dLearn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing ConfigMaps
ConfigMap with file-like content
Mount application config files from YAML.
Combine Secret and ConfigMap into one volume
Project multiple sources into a single directory.