How are ConfigMap and Secret volume updates propagated, and what is `subPath` caveat?
IntermediateConceptConfiguration & Storage
Answer
The kubelet syncs mounted ConfigMaps/Secrets periodically (default up to about a minute) via atomic symlink swaps, so apps must re-read files or support reload. Files mounted with subPath, and env vars, are never updated. Marking them immutable: true stops updates and reduces API server watch load.
More on Configuration & Storage
What is a ConfigMap and how can a Pod consume it?BeginnerWhat is a Secret and is it secure by default?BeginnerWhat are the common Secret types?BeginnerWhat is a Volume and how does it differ from a container filesystem?BeginnerWhat is `emptyDir` and when is it used?BeginnerWhat are PersistentVolume (PV), PersistentVolumeClaim (PVC) and StorageClass?Beginner