kubernetes, parametrize env var after |- operand
It's not possible directly in kubernetes. ConfigMap treats underlying file as generic data
type and can't template it, since it doesn't recognize its type (.yaml, .conf etc)
What you can do:
- apply some sort of templating to your .yaml file in advance (e.g. via Jinja2 template)
- generate different ConfigMaps from different files depending on your environments (staging, prod).
- generate ConfigMaps dynamically with kustomize