Understanding what ConfigMaps and Secrets are
Configuration management is a consideration that must always be taken seriously in any IT project. Kubernetes has made configuration a first-class passenger by creating two resources specifically designed to manage configuration: ConfigMaps and Secrets.
In the next section, we will explain what ConfigMaps and Secrets are and how they are used to manage configuration in Kubernetes.
Decoupling your application and your configuration
When we use Kubernetes, we want our applications to be as portable as possible. A good way to achieve this is to decouple the application from its configuration. Back in the old days, configuration and application were the same things: since the application code was designed to work only on one environment, configuration values were often bundled within the application code itself, so the configuration and application code were tightly coupled.
Having both application code and configuration values...