Common config in Kubernetes ConfigMap
There are two ways to do that.
- Kustomize - Customization of kubernetes YAML configurations (developed as kubernetes sigs, and had been integrated into
kubectl
command line). But currently it isn't mature enough if compare withhelm
chart
https://github.com/kubernetes-sigs/kustomize
- Helm chart - The Kubernetes Package Manager. Its
vaules.yaml
can define the vaule for same configuration files (in your case, they are configmap) with variables.