-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdefaults.yml
More file actions
106 lines (95 loc) · 3.1 KB
/
Copy pathdefaults.yml
File metadata and controls
106 lines (95 loc) · 3.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
parameters:
fluentbit:
=_metadata:
multi_instance: true
multi_tenant: true
namespace: syn-fluentbit
createNamespace: true
charts:
fluent-bit:
source: https://fluent.github.io/helm-charts
version: 0.47.10
images:
fluent_bit:
image: docker.io/fluent/fluent-bit
tag: 3.1.10
# fluent-bit extra annotations
annotations:
fluentbit.io/exclude: "true"
configMapName: ${_instance}
config:
# fluent-bit service config
service:
Flush: 1
Log_Level: info
# If key Name (specifying the plugin) doesn't exist for an entry, the
# entry's key is used as the plugin name. This allows having multiple
# tail inputs for example. This is true for inputs, outputs, parsers and
# filters.
#
# Inputs: Read container and kubelet logs by default, can be extended
# arbitrarily.
inputs:
containers:
Name: tail
Path: /var/log/containers/*.log
Parser: docker
Tag: kube.*
Mem_Buf_Limit: 5MB
Skip_Long_lines: "On"
systemd:
Tag: host.*
Systemd_Filter: _SYSTEMD_UNIT=kubelet.service
Read_From_Tail: "On"
# We don't define any outputs by default, as we have no idea where logs
# should be shipped.
outputs: {}
# The fluent-bit image ships with a collection of default parsers, which
# we include in the section 'service' above. "docker" is one of the
# included parsers. The set of available parsers can be found at
# https://github.com/fluent/fluent-bit/blob/master/conf/parsers.conf
parsers: {}
multiline_parsers: {}
# The kubernetes filter is almost always wanted
filters:
00_kubernetes:
Name: kubernetes
Match: kube.*
# Extract log elements and add them as top-level keys
Merge_Log: "On"
# Keep the original log message
Keep_Log: "On"
K8S-Logging.Parser: "On"
K8S-Logging.Exclude: "On"
# Configure a custom secret to deploy
secretName: ${_instance}
secret: {}
# Add volumes to the pod spec
extraVolumes: []
extraVolumeMounts: []
# control PodSecurityPolicy
psp_enabled: false
# Enable fluent-bit metrics, and configure a ServiceMonitor
monitoring:
enabled: false
metricsPort: 2020
# Add tolerations to the pod spec
tolerations: []
helm_values:
fullnameOverride: ${_instance}
podAnnotations: ${fluentbit:annotations}
image:
repository: ${fluentbit:images:fluent_bit:image}
tag: ${fluentbit:images:fluent_bit:tag}
existingConfigMap: ${fluentbit:configMapName}
service:
port: ${fluentbit:monitoring:metricsPort}
podSecurityPolicy:
create: ${fluentbit:psp_enabled}
serviceMonitor:
enabled: ${fluentbit:monitoring:enabled}
prometheusRule:
enabled: false
tolerations: ${fluentbit:tolerations}
extraVolumes: ${fluentbit:extraVolumes}
extraVolumeMounts: ${fluentbit:extraVolumeMounts}