Key-value application config in YAML.
Section: ConfigMaps
Basic ConfigMap YAML
yaml
yaml
apiVersion: v1
kind: ConfigMap
metadata:
name: app-config
data:
APP_ENV: production
LOG_LEVEL: info
FEATURE_X_ENABLED: "true"Explanation
ConfigMaps store non-confidential data in key-value form and can be consumed as env vars, args, or files.
Learn 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.