Kubernetes · Immutable ConfigMaps

Where an immutable ConfigMap fits

The Namespace groups the resources, the Deployment keeps Pods running, and the ConfigMap supplies locked settings to the container.

Where an immutable ConfigMap fits Inside the dev Namespace, the weather Deployment creates Pods whose container receives the CITY and REFRESH_SECONDS settings from the immutable weather-settings-v1 ConfigMap as environment variables and as files. NAMESPACE · dev POD · ONE OF 3 CREATES AS ENV VARS AS FILES DEPLOYMENT weather keeps 3 Pods running A ConfigMap only stores settings. It runs nothing. The app must be written to read these settings. CONTAINER weather-app ENV $CITY $REFRESH_SECONDS FILE /etc/weather/CITY CONFIGMAP IMMUTABLE weather-settings-v1 CITY "Kathmandu" REFRESH_SECONDS "60" LEGEND Locked settings (focal) Kubernetes resource Creates or delivers Grouping boundary