【问题标题】:How to add smtp settings using helm chart to prometheus-operator?如何使用 helm chart 将 smtp 设置添加到 prometheus-operator?
【发布时间】:2019-10-31 11:33:24
【问题描述】:

我通过 values.yaml 提供 smtp 配置,但 grafana 无法采用此设置

通过 values.yaml like 提供 smtp 配置


{ 
"grafana.ini":{ 
     "smtp": {
     "enabled": true, 
     "host" : "smtp.mailtrap.io:25", 
     "user" : "username", 
     "password" : "password" 
             } 
              } 
}

在 cmd 下使用来安装图表

helm install stable/prometheus-operator --name prometheus-operator --namespace monitoring -f values.yaml

更新值后,grafana 应该能够发送电子邮件,但我看到 http://localhost:3000/admin/settings 没有使用 values.yaml 文件提供的值进行更新

【问题讨论】:

    标签: grafana prometheus kubernetes-helm prometheus-operator


    【解决方案1】:

    您需要参考 Grafna chart

    # `existingSecret` is a reference to an existing secret containing the smtp configuration
    

    【讨论】:

      猜你喜欢
      • 2019-06-19
      • 2020-12-09
      • 2020-03-18
      • 1970-01-01
      • 1970-01-01
      • 2021-02-12
      • 2020-12-16
      • 1970-01-01
      • 2020-10-08
      相关资源
      最近更新 更多