Skip to content
This repository was archived by the owner on May 6, 2020. It is now read-only.

Commit 31043c8

Browse files
authored
Merge pull request #78 from awmichel/feature/custom-daemon-environment
feat(charts): Allow custom environment config for fluentd daemon.
2 parents a510756 + 2fcd2f5 commit 31043c8

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

charts/fluentd/templates/logger-fluentd-daemon.yaml

+5-4
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,16 @@ spec:
3333
memory: {{.Values.limits_memory}}
3434
{{- end}}
3535
{{- end}}
36-
{{- if and (.Values.syslog.host) (.Values.syslog.port)}}
3736
env:
37+
{{- range $key, $value := .Values.daemon_environment }}
38+
{{ $key }}: {{ $value }}
39+
{{- end }}
40+
{{- if and (.Values.syslog.host) (.Values.syslog.port)}}
3841
- name: "SYSLOG_HOST"
3942
value: {{.Values.syslog.host | quote }}
4043
- name: "SYSLOG_PORT"
4144
value: {{.Values.syslog.port | quote }}
42-
- name: "DROP_FLUENTD_LOGS"
43-
value: "true"
44-
{{- end}}
45+
{{- end}}
4546
volumeMounts:
4647
- name: varlog
4748
mountPath: /var/log

charts/fluentd/values.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,7 @@ syslog:
99
host: "" # external syslog endpoint url
1010
port: "" # external syslog endpoint port
1111

12+
# Any custom fluentd environment variables (https://github.com/deis/fluentd#configuration)
13+
# can be specified as key-value pairs under daemon_environment.
14+
daemon_environment:
15+
#<example-env>: <example-value>

0 commit comments

Comments
 (0)