liveBook · Manning

Configmap

As explained in Google Anthos in Action

A ConfigMap is a Kubernetes resource that stores non-confidential configuration data separately from container images.

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

How Google Anthos in Action covers it

How deep it goes
Explains the rationale and two consumption mechanisms, but does not provide manifests, commands, or update behavior.
Examples
Uses a location-specific web-server configuration shared across deployments through one portable container image.
What it assumes
Assumes familiarity with container images and Pods while distinguishing ConfigMaps from confidential-information storage.
What you can do after
Operate/configure Pods with deployment-specific settings without rebuilding application images.
How it connects
Connects ConfigMaps with container images, Pods, environment variables, mounted files, and Secrets.

Also explained in

Compare how 8 books explain configmap →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Google Anthos in Action. The section links point to the parts of the book it draws on.