35 lines
723 B
YAML
35 lines
723 B
YAML
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: fluentd-config
|
|
labels:
|
|
{{- include "fluentd.labels" . | nindent 4 }}
|
|
data:
|
|
{{- range $key, $value := .Values.fileConfigs }}
|
|
{{$key }}: |-
|
|
{{- (tpl $value $) | nindent 4 }}
|
|
{{- end }}
|
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: fluentd-main
|
|
labels:
|
|
{{- include "fluentd.labels" . | nindent 4 }}
|
|
data:
|
|
fluent.conf: |-
|
|
# do not collect fluentd logs to avoid infinite loops.
|
|
<label @FLUENT_LOG>
|
|
<match **>
|
|
@type null
|
|
@id ignore_fluent_logs
|
|
</match>
|
|
</label>
|
|
|
|
@include config.d/*.conf
|
|
{{- range $key := .Values.configMapConfigs }}
|
|
{{- print "@include " $key ".d/*" | nindent 4 }}
|
|
{{- end }}
|