A user reports that a ConfigMap update is not reflected in running pods. Which action should be taken to ensure pods receive the updated configuration?
Trap 1: Delete and recreate the ConfigMap
Does not trigger pod restart; pods still use old mount.
Trap 2: Edit the deployment and change a label
Does not cause pods to re-read ConfigMap unless it triggers a rollout.
Trap 3: Restart the kubelet on the nodes
Unnecessary; kubelet restart does not refresh pod envs/mounts.
- A
Perform a rollout restart of the deployment
ConfigMaps are consumed as environment variables or mounted volumes at pod start, so running pods keep stale values. A rollout restart recreates the pods, causing them to read the updated ConfigMap. Editing the ConfigMap alone does not propagate changes to existing containers.
- B
Delete and recreate the ConfigMap
Why it fails: Does not trigger pod restart; pods still use old mount.
- C
Edit the deployment and change a label
Why it fails: Does not cause pods to re-read ConfigMap unless it triggers a rollout.
- D
Restart the kubelet on the nodes
Why it fails: Unnecessary; kubelet restart does not refresh pod envs/mounts.