1

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

1
  • Skip_verify is for self signed certs so that setting does not look correct.
    – Daniel Lee
    Jun 20, 2018 at 7:40

3 Answers 3

1

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.

1

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.

0

Looks like a firewall issue. Please share the error logs

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.