Docker and CI/CD · Senior · Question 30 of 75
You update a ConfigMap, but the pods still use the old values. Why?
- 1Pods cache ConfigMaps until the node is rebooted
- 2ConfigMaps can only be changed by recreating the namespace
- ✓Correct answer: Env values are read at start; roll pods, e.g. via a hash annotation
Explanation
Mounted files update eventually, environment variables never. Many charts add a checksum of the config to the pod template so a change triggers a rolling restart.