I am using this chart : https://github.com/helm/charts/tree/master/stable/prometheus-mongodb-exporter
This chart requires MONGODB_URI
environment variable or mongodb.uri
populated in values.yaml
file,
Since this is a connection string I don't want to check-in that into git.
I was thinking of kubernetes secrets and provide the connection string from kubernetes secrets. I have not been able to successfully find a solution for this one.
I also tried creating another helm chart and using this one as a dependency for that chart and provide value for MONGODB_URI
from secrets.yaml
but that also didn't work because in prometheus-mongodb-exporter
chart MONGODB_URI
is defined as a required value which is then passed into secrets.yaml
file within that chart, so dependency chart never gets installed because of that.
What would be the best way of achieving this?