Configuration Management in Kubernetes
Kubernetes provides centralized management of application configurations and makes it possible to update the configurations on the fly without needing to recompile or reboot your application. It propagates the changes to all the containers that have the configs as mounted volumes so that you don't have to change every instance's configurations manually one by one.
Kubernetes provides a built-in resource called ConfigMap to ease the management of application configurations. This encourages the decoupling of the configurations from the source code and managing them independently.
Data inside a ConfigMap consists of key-value pairs, where the key is the name of the provided file or the key provided in the command and the value is file content or the value provided in the command. The following table shows the API reference for the ConfigMap object. You can see in the following table which fields correspond to what type of an object...