Skip to content
This repository was archived by the owner on Aug 17, 2023. It is now read-only.

Commit 5bed284

Browse files
committed
feat(charts): add optional syslog endpoint setting
1 parent 9f791ef commit 5bed284

2 files changed

Lines changed: 15 additions & 0 deletions

File tree

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,15 @@ spec:
3232
{{- if (.Values.limits_memory) }}
3333
memory: {{.Values.limits_memory}}
3434
{{- end}}
35+
{{- end}}
36+
{{- if and (.Values.syslog.host) (.Values.syslog.port)}}
37+
env:
38+
- name: "SYSLOG_HOST"
39+
value: {{.Values.syslog.host | quote }}
40+
- name: "SYSLOG_PORT"
41+
value: {{.Values.syslog.port | quote }}
42+
- name: "DROP_FLUENTD_LOGS"
43+
value: "true"
3544
{{- end}}
3645
volumeMounts:
3746
- name: varlog

charts/fluentd/values.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,9 @@ pull_policy: "Always"
33
docker_tag: canary
44
# limits_cpu: "100m"
55
# limits_memory: "50Mi"
6+
7+
# external syslog endpoint
8+
syslog:
9+
host: "" # external syslog endpoint url
10+
port: "" # external syslog endpoint port
11+

0 commit comments

Comments
 (0)