A ConfigMap stores non-confidential application configuration separately from a container image. Pods can read that configuration as mounted files or environment variables, allowing one portable image to serve deployments with different settings. section 3.2.6
ConfigMaps support these deployment practices:
- Change deployment configuration by replacing or selecting a ConfigMap instead of rebuilding the container image. section 3.2.6
- Expose configuration to an application through a mounted file or environment variables, depending on application requirements. section 3.2.6
- Keep confidential information elsewhere: Secrets provide external Pod information and are not stored in cleartext. section 3.2.6
Portable web server deployment
Configure a web server image to read its web-server settings from a ConfigMap. The same image can then run in different organizational locations with location-specific configuration, without maintaining separate images. section 3.2.6







