Home › Kubernetes Tutorial › ConfigMaps
ConfigMaps
Keep settings outside the image.
A ConfigMap stores non-secret settings as key-value pairs. Pods can read them as environment variables or as files. This lets you use the same image in every environment.
Example code
apiVersion: v1
kind: ConfigMap
metadata:
name: app-config
data:
APP_MODE: production
LOG_LEVEL: info