Comment 2 for bug 1817624

Revision history for this message
Drew Freiberger (afreiberger) wrote :

It seems that the influxdb-grafana-controller template already sets some GF_* vars, we just need to alter this template to set some more variables like smtp host, port, sslverify

https://github.com/kubernetes/kubernetes/blob/master/cluster/addons/cluster-monitoring/influxdb/influxdb-grafana-controller.yaml#L68

which is pulled from:

https://github.com/juju-solutions/cdk-addons/blob/master/get-addon-templates#L271

Could the get-addon-templates script in the cdk-addons alter the influxdb-grafana-controller.yaml to add below into the env section of the pod file based on charm configs before running it in kubernetes?

GF_SMTP_ENABLED=true"
GF_SMTP_HOST=smtp.example.com:25
<email address hidden>
GF_SMTP_USER=smtpuser
GF_SMTP_PASSWORD=secret
GF_SMTP_SKIP_VERITY=true