Configuration and resources, topic 14 of 61
ConfigMaps
A ConfigMap holds non-secret configuration as key-value pairs or whole files, so one image can run in every environment. A Pod reads it as environment variables, through envFrom or valueFrom, or as files in a mounted volume.
Files from a mounted ConfigMap are updated in place after a change, a little later; environment variables are not, and need a restart of the Pod. Many teams put a hash of the ConfigMap in the Pod template so a change rolls the Deployment.
On Opsfolk
Elsewhere
- ConfigMapsOfficial