Search⌘ K

ConfigMap Theory

Explore the role of ConfigMaps in Kubernetes for managing non-sensitive configuration data separately from Pods. Learn how to inject data through environment variables, volumes, and startup commands to support flexible container configurations.

Kubernetes has an API resource called a ConfigMap (CM) that lets us store configuration data outside of Pods and inject it at runtime.

ConfigMaps are first-class objects in the core API group. They’re also v1. This tells us a few things:

  1. They’re stable (v1).

  2. They’ve been around for a while (new stuff never goes in the core API group).

  3. We can define and deploy them in YAML files.

  4. We can manage them with kubectl.

We’ll typically ...