1
votes

Pull grafana helm chart from official site.

https://github.com/kubernetes/charts/tree/master/stable/grafana

Set email send configuration in values.yaml file:

https://github.com/kubernetes/charts/blob/master/stable/grafana/values.yaml#L363

[smtp]
enabled = true
host = smtp.gmail.com:587
user = [email protected]
password = sender_password
;cert_file =
;key_file =
skip_verify = true
from_address = [email protected]

Then install it at local:

$ helm install grafana

Test send email, failed. Don't know why.

enter image description here

3
Skip_verify is for self signed certs so that setting does not look correct.Daniel Lee

3 Answers

0
votes

You should probably check grafana logs first:

$ kubectl logs <grafana-pod-name> --tail=20

Logs will have the error. I tried with gmail and had to enable Allow less secure apps under Apps with account access in security settings of gmail account.

P.S: I am using smtp port 465 for gmail.

0
votes

Looks like a firewall issue. Please share the error logs

0
votes

I think I know what is up.

The

user: 
password:

fields are not for your email address and password, but SMTP user and SMTP password credentials.