ConfigMaps and consumption
ConfigMaps store nonsecret key-value configuration that can be consumed as environment variables or files. Environment values are set at container startup and do not refresh automatically. Mounted updates have different behavior and timing, and applications must reread files when dynamic changes are intended. For example, aPP_MODE=dev comes from a ConfigMap; changing it does not alter an already-started container’s environment value.
APP_MODE=dev comes from a ConfigMap; changing it does not alter an already-started container’s environment value.
A Pod starts with APP_MODE supplied through configMapKeyRef. Kubernetes resolves that value when constructing the container environment. Editing the ConfigMap later does not mutate the already-running process's environment. A rollout or application-specific refresh mechanism may therefore be necessary. Mounted file consumption has different update behavior and the application must actually reread the file.
A ConfigMap stores nonsecret configuration. An environment variable is a process startup value. A mounted configuration file appears through a volume mechanism. SubPath mounts and other consumption details can affect update behavior, so check the exact setup. External configuration improves separation from images, but creates a release dependency: the same image can behave differently with different values. Preserve the intended configuration revision and validation evidence. Do not label passwords ordinary configuration merely to avoid managing Secrets, and do not assume a successful ConfigMap edit establishes that the application has adopted the change.
APP_MODE=dev comes from a ConfigMap; changing it does not alter an already-started container’s environment value.
Do not overlook this operational distinction: Mounted updates have different behavior and timing, and applications must reread files when dynamic changes are intended.