ConfigMaps and Secrets decouple configuration from container images, so the same image runs in dev, staging, and production with different settings. ConfigMaps hold non-sensitive config; Secrets hold sensitive data (passwords, tokens, keys) and are handled more carefully.
The idea: config out of the image
Image = code (immutable, built once). Config = per-environment values.
Baking config into the image is an anti-pattern (rebuild per env, secrets leak).
→ Store config in ConfigMaps/Secrets, inject at runtime as env vars or files.
