Skip to content

Commit

Permalink
Merge pull request #245 from zhu733756/master
Browse files Browse the repository at this point in the history
chart: add kafka/es buffer
  • Loading branch information
benjaminhuo authored Mar 23, 2022
2 parents 323c7b8 + f5ce114 commit dc48697
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 16 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ spec:
port: {{ .Values.fluentd.output.es.port }}
logstashFormat: true
logstashPrefix: {{ .Values.fluentd.output.es.logstashPrefix }}
{{- if .Values.fluentd.output.es.buffer }}
buffer:
type: {{ .Values.fluentd.output.es.buffer.type }}
path: {{ .Values.fluentd.output.es.buffer.path }}
{{- end }}
{{- end }}
{{- end }}
{{- end }}
5 changes: 5 additions & 0 deletions charts/fluent-operator/templates/fluentd-output-kafka.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ spec:
brokers: {{.Values.fluentd.output.kafka.brokers }}
useEventTime: true
topicKey: {{.Values.fluentd.output.kafka.topicKey }}
{{- if .Values.fluentd.output.kafka.buffer }}
buffer:
type: {{ .Values.fluentd.output.kafka.buffer.type }}
path: {{ .Values.fluentd.output.kafka.buffer.path }}
{{- end }}
{{- end }}
{{- end }}
{{- end }}
8 changes: 8 additions & 0 deletions charts/fluent-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,18 @@ fluentd:
host: elasticsearch-logging-data.kubesphere-logging-system.svc
port: 9200
logstashPrefix: ks-logstash-log
buffer:
enable: false
type: file
path: /buffers/es
kafka:
enable: false
brokers: "my-cluster-kafka-bootstrap.default.svc:9091,my-cluster-kafka-bootstrap.default.svc:9092,my-cluster-kafka-bootstrap.default.svc:9093"
topicKey: kubernetes_ns
buffer:
enable: false
type: file
path: /buffers/kafka

nameOverride: ""
fullnameOverride: ""
Expand Down

0 comments on commit dc48697

Please sign in to comment.