【问题标题】:Update helm chart with additional properties使用其他属性更新 helm 图表
【发布时间】:2020-12-18 21:09:47
【问题描述】:

我们正在使用prometheus operator chart

目前,我正在创建自己的 values.yaml,它会覆盖图表中的默认值,例如

helm install po -f values.yaml stable/prometheus-operator -n po

有一个 Grafana 属性我需要修改,因为操作员带有 grafana 属性

https://github.com/helm/charts/blob/master/stable/prometheus-operator/values.yaml#L486

但是,我想修改不在 prometheus 图表的values.yaml 中的属性,并在此处找到: https://github.com/helm/charts/blob/master/stable/grafana/values.yaml#L422(图上有参考)

我的问题是假设我想修改 client_id推荐的方式是什么? https://github.com/helm/charts/blob/master/stable/grafana/values.yaml#L431

【问题讨论】:

    标签: kubernetes prometheus grafana kubernetes-helm prometheus-operator


    【解决方案1】:

    您可以使用依赖项的名称(对于prometheus 图表中的grafana,可以找到here)作为values.yml 中的另一个键来覆盖依赖图表的值。

    在这种情况下,它只是grafana,所以要在你的values.yml 中覆盖它,这样做:

    # ... config of the original prometheus chart
    
    # overwrite grafana's yaml by using the dependency name
    grafana:
      grafana.ini:
        auth.github:
          client_id: 'what you need to put here'
    

    【讨论】:

      猜你喜欢
      • 2022-01-09
      • 1970-01-01
      • 1970-01-01
      • 2020-11-15
      • 1970-01-01
      • 2021-08-28
      • 1970-01-01
      • 2015-09-27
      • 1970-01-01
      相关资源
      最近更新 更多