1+ ---
2+ apiVersion : v1
3+ kind : ConfigMap
4+ metadata :
5+ name : fluentbit-config-{{ template "fullname" . }}
6+ labels :
7+ app : {{ template "name" . }}
8+ chart : {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
9+ release : {{ .Release.Name }}
10+ heritage : {{ .Release.Service }}
11+ data :
12+ fluent-bit.conf : |-
13+ [SERVICE]
14+ # Flush
15+ # =====
16+ # Set an interval of seconds before to flush records to a destination
17+ Flush 5
18+
19+ # Grace
20+ # =====
21+ # Wait time (seconds) on exit
22+ Grace 5
23+
24+ # Daemon
25+ # ======
26+ # Instruct Fluent Bit to run in foreground or background mode.
27+ Daemon Off
28+
29+ # Log_Level
30+ # =========
31+ # Set the verbosity level of the service, values can be:
32+ #
33+ # - error
34+ # - warning
35+ # - info
36+ # - debug
37+ # - trace
38+ #
39+ # By default 'info' is set, that means it includes 'error' and 'warning'.
40+ Log_Level info
41+
42+ # Storage options for backpressure
43+ storage.path /var/log/fluentbit/
44+ storage.sync normal
45+ storage.checksum off
46+ storage.backlog.mem_limit 5M
47+
48+ # Parsers_File
49+ # ============
50+ # Specify an optional 'Parsers' configuration file
51+ Parsers_File parsers.conf
52+ Parsers_File custom_parsers.conf
53+ Plugins_File plugins.conf
54+
55+ # HTTP Server
56+ # ===========
57+ # Enable/Disable the built-in HTTP Server for metrics
58+ HTTP_Server Off
59+ HTTP_Listen 0.0.0.0
60+ HTTP_Port 2020
61+
62+ {{- .Values.containers.fluentbit.filters | nindent 4}}
63+
64+ {{- .Values.containers.fluentbit.inputs | nindent 4}}
65+
66+ #[FILTER]
67+ # Name lua
68+ # Match zmq
69+ # script fluentbit.lua
70+ # call set_index
71+
72+ [OUTPUT]
73+ Name es
74+ Match *
75+ Host {{ .Values.containers.fluentbit.config.elasticsearch_host }}
76+ Port {{ .Values.containers.fluentbit.config.elasticsearch_port }}
77+ Logstash_Prefix_Key es_index
78+ Logstash_DateFormat writer
79+ logstash_format on
80+ Type _doc
81+ Retry_Limit 1
82+
83+ custom_parsers.conf : |-
84+ {{- .Values.containers.fluentbit.parsers | nindent 4}}
0 commit comments