Kubernetes

Explain ConfigMap

Difficulty: unrated

Source: bregman-arie/devops-exercises by Arie Bregman

Answer

Separate configuration from pods. It's good for cases where you might need to change configuration at some point but you don't want to restart the application or rebuild the image so you create a ConfigMap and connect it to a pod but externally to the pod.

Overall it's good for:

  • Sharing the same configuration between different pods
  • Storing external to the pod configuration