12: ConfigMaps and Secrets

Most business applications have two components:

  • The application
  • The configuration

Simple examples include web servers such as NGINX or httpd (Apache). Neither is much use without a configuration. However, as soon as you add a configuration, they become very useful.

In the past, we packaged the application and the configuration into a single easy-to-deploy unit. We brought this pattern with us as we moved into the early days of cloud-native microservices. However, it’s an anti-pattern, and modern applications should be decoupled from their configurations. Doing this brings the following benefits:

  • Reuse
  • Simpler development and testing
  • Simpler and less-disruptive changes

We’ll explain all these and more as we go through ...

Get The Kubernetes Book - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.