Kubernetes already provides a way to manage configuration with ConfigMap
.
However, I have a question/problem here.
If I have multiple applications with different needs deployed in Kubernetes, all these deployments might share and access some common config variables. Is it possible for ConfigMap to use a common config variable?
There are two ways to do that.
kubectl
command line). But currently it isn't mature enough if compare with helm
charthttps://github.com/kubernetes-sigs/kustomize
vaules.yaml
can define the vaule for same configuration files (in your case, they are configmap) with variables.