Fluentd: Render Config as Template
This change updates the fluentd configmap-etc to render .Values.conf.fluentd.template as a template, allowing for greater flexibility in configuration. Change-Id: I8809767c679c377e319ecc53960c55ae18e1b558
This commit is contained in:
parent
f8c5d06769
commit
2039805314
@ -23,5 +23,5 @@ metadata:
|
||||
name: {{ printf "%s-%s" $envAll.Release.Name "fluentd-etc" | quote }}
|
||||
type: Opaque
|
||||
data:
|
||||
fluent.conf: {{ .Values.conf.fluentd.template | b64enc }}
|
||||
{{- include "helm-toolkit.snippets.values_template_renderer" (dict "envAll" $envAll "template" .Values.conf.fluentd.template "key" "fluent.conf" "format" "Secret") | indent 2 }}
|
||||
{{- end }}
|
||||
|
@ -59,10 +59,11 @@ dependencies:
|
||||
|
||||
conf:
|
||||
fluentd:
|
||||
# This field is now rendered as a helm template!
|
||||
template: |
|
||||
<source>
|
||||
@type prometheus
|
||||
port 24231
|
||||
port {{ tuple "fluentd" "internal" "metrics" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }}
|
||||
</source>
|
||||
|
||||
<source>
|
||||
|
@ -40,10 +40,11 @@ deployment:
|
||||
type: DaemonSet
|
||||
conf:
|
||||
fluentd:
|
||||
# This field is now rendered as a helm template!
|
||||
template: |
|
||||
<source>
|
||||
@type prometheus
|
||||
port 24231
|
||||
port {{ tuple "fluentd" "internal" "metrics" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }}
|
||||
</source>
|
||||
|
||||
<source>
|
||||
|
Loading…
Reference in New Issue
Block a user