【问题标题】:Use Release.Name in values.yaml in helm在 helm 的 values.yaml 中使用 Release.Name
【发布时间】:2020-03-31 23:59:33
【问题描述】:

我正在尝试在我的图表中使用 stable/fluent-bit 作为子图表。该图表在 values.yaml 中有一个值:

backend:
  es:
    host: elasticsearch

如何在不更改 fluent-bit 图表的情况下将 backend.es.host 的值设置为 {Release.Name}-elasticsearch?

【问题讨论】:

  • 显然,这是一个广为人知的功能请求,但社区没有实施的意愿:github.com/helm/helm/issues/2492。在我的工作场所,我们使用自定义变量来替换我们的 CI/CD 管道,即在 helm 图表值文件之上的一层。

标签: kubernetes-helm fluentd fluent-bit


【解决方案1】:

"{{ tpl .Release.Name }}-elasticsearch" 应该可以工作。

【讨论】:

  • 如果你在 values.yaml 中设置它不会
猜你喜欢
  • 2023-03-14
  • 2021-12-18
  • 2021-06-17
  • 2020-04-15
  • 2019-01-14
  • 2020-08-12
  • 2022-08-16
  • 2022-08-03
  • 2019-09-21
相关资源
最近更新 更多