Use Release.Name in values.yaml in helm

12/7/2019

I am trying to use stable/fluent-bit as a sub-chart in my chart. That chart has a value in values.yaml:

backend:
  es:
    host: elasticsearch

How can I set the value of backend.es.host as something like {Release.Name}-elasticsearch without making changes to the fluent-bit chart?

-- Nsen
fluent-bit
fluentd
kubernetes-helm

1 Answer

2/28/2020

"{{ tpl .Release.Name }}-elasticsearch" should work.

-- jacopo sarti
Source: StackOverflow