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

Commit

Permalink
feat(charts): add optional syslog endpoint setting
Browse files Browse the repository at this point in the history
  • Loading branch information
rimusz committed Dec 7, 2016
1 parent 9f791ef commit 5bed284
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
9 changes: 9 additions & 0 deletions charts/fluentd/templates/logger-fluentd-daemon.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,15 @@ spec:
{{- if (.Values.limits_memory) }}
memory: {{.Values.limits_memory}}
{{- end}}
{{- end}}
{{- if and (.Values.syslog.host) (.Values.syslog.port)}}
env:
- name: "SYSLOG_HOST"
value: {{.Values.syslog.host | quote }}
- name: "SYSLOG_PORT"
value: {{.Values.syslog.port | quote }}
- name: "DROP_FLUENTD_LOGS"
value: "true"
{{- end}}
volumeMounts:
- name: varlog
Expand Down
6 changes: 6 additions & 0 deletions charts/fluentd/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,9 @@ pull_policy: "Always"
docker_tag: canary
# limits_cpu: "100m"
# limits_memory: "50Mi"

# external syslog endpoint
syslog:
host: "" # external syslog endpoint url
port: "" # external syslog endpoint port

0 comments on commit 5bed284

Please sign in to comment.