-
Notifications
You must be signed in to change notification settings - Fork 975
/
values.yaml
391 lines (356 loc) · 8.36 KB
/
values.yaml
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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
global:
## Override the deployment namespace
# namespaceOverride:
image:
repository: public.ecr.aws/aws-observability/aws-for-fluent-bit
tag: 2.32.2.20240516
pullPolicy: IfNotPresent
imagePullSecrets: []
nameOverride: ""
fullnameOverride: ""
podSecurityContext: {}
# runAsUser: 1000
# runAsGroup: 1000
# runAsNonRoot: true
# seccompProfile:
# type: RuntimeDefault
containerSecurityContext: {}
# allowPrivilegeEscalation: false
# capabilities:
# drop:
# - ALL
rbac:
# rbac.pspEnabled, if `true` a restricted pod security policy is created and used
pspEnabled: false
service:
## Allow the service to be exposed for monitoring
## For liveness check to work, Health_Check must be set to On
## https://docs.fluentbit.io/manual/administration/monitoring
extraService: |
HTTP_Server On
HTTP_Listen 0.0.0.0
HTTP_PORT 2020
Health_Check On
HC_Errors_Count 5
HC_Retry_Failure_Count 5
HC_Period 5
parsersFiles:
- /fluent-bit/parsers/parsers.conf
# extraParsers: |
# [PARSER]
# Name logfmt
# Format logfmt
input:
enabled: true
tag: "kube.*"
path: "/var/log/containers/*.log"
db: "/var/log/flb_kube.db"
multilineParser: "docker, cri"
memBufLimit: 5MB
skipLongLines: "On"
refreshInterval: 10
# extraInputs: |
# ...
# additionalInputs: |
# [INPUT]
# Name winlog
# Channels Setup,Windows PowerShell
# Interval_Sec 1
# DB winlog.sqlite
filter:
enabled: true
match: "kube.*"
kubeURL: "https://kubernetes.default.svc.cluster.local:443"
mergeLog: "On"
mergeLogKey: "data"
keepLog: "On"
k8sLoggingParser: "On"
k8sLoggingExclude: "On"
bufferSize: "32k"
# Uncomment the extraFilters to use Kubelet to get the Metadata instead of talking to API server for large clusters
# Check this link for more details https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/ContainerInsights-use-kubelet.html
# extraFilters: |
# Kube_Tag_Prefix application.var.log.containers.
# Labels Off
# Annotations Off
# Use_Kubelet true
# Kubelet_Port 10250
# Kube_CA_File /var/run/secrets/kubernetes.io/serviceaccount/ca.crt
# Kube_Token_File /var/run/secrets/kubernetes.io/serviceaccount/token
# additionalFilters: |
# [FILTER]
# Name grep
# Match *
# Exclude log lvl=debug*
cloudWatch:
enabled: false
match: "*"
region: "us-east-1"
logGroupName: "/aws/eks/fluentbit-cloudwatch/logs"
logStreamName:
logStreamPrefix: "fluentbit-"
logKey:
logFormat:
logRetentionDays:
roleArn:
autoCreateGroup: true
endpoint:
credentialsEndpoint: {}
# extraOutputs: |
# ...
cloudWatchLogs:
enabled: true
match: "*"
region: "us-east-1"
logGroupName: "/aws/eks/fluentbit-cloudwatch/logs"
logGroupTemplate: # /aws/eks/fluentbit-cloudwatch/workload/$kubernetes['namespace_name']
logStreamName:
logStreamPrefix: "fluentbit-"
logStreamTemplate: # $kubernetes['pod_name'].$kubernetes['container_name']
logKey:
logFormat:
roleArn:
autoCreateGroup: true
logRetentionDays:
endpoint:
metricNamespace:
metricDimensions:
stsEndpoint:
autoRetryRequests:
externalId:
# extraOutputs: |
# log_format json/emf
# worker 1
firehose:
enabled: false
match: "*"
region: "us-east-1"
deliveryStream: "my-stream"
dataKeys:
roleArn:
endpoint:
timeKey:
# extraOutputs: |
# ...
kinesis:
enabled: false
match: "*"
region: "us-east-1"
stream: "my-kinesis-stream-name"
partitionKey: "container_id"
appendNewline:
replaceDots:
dataKeys:
roleArn:
endpoint:
stsEndpoint:
timeKey:
timeKeyFormat:
compression:
aggregation:
experimental:
concurrency:
concurrencyRetries:
# extraOutputs: |
# ...
kinesis_streams:
enabled: false
match: "*"
region: "us-east-1"
stream: "my-kinesis-stream-name"
role_arn:
endpoint:
sts_endpoint:
time_key:
time_key_format:
external_id:
auto_retry_requests:
log_key:
elasticsearch:
enabled: false
match: "*"
host:
awsRegion: "us-east-1"
awsAuth: "On"
tls: "On"
port: "443"
retryLimit: 6
replaceDots: "On"
suppressTypeName:
# extraOutputs: |
# Index = my-index
s3:
enabled: false
match: "*"
bucket:
region: "us-east-1"
jsonDateKey: "date"
jsonDateFormat: "iso8601"
totalFileSize: "100M"
uploadChunkSize: "6M"
uploadTimeout: "10m"
storeDir: "/tmp/fluent-bit/s3"
storeDirLimitSize: 0
s3KeyFormat: /pod-logs/$TAG/%Y-%m-%d/%H-%M-%S
s3KeyFormatTagDelimiters:
staticFilePath: false
usePutObject: false
roleArn:
endpoint:
stsEndpoint:
cannedAcl:
compression:
contentType:
sendContentMd5: false
autoRetryRequests: true
logKey:
preserveDataOrdering: true
storageClass:
retryLimit: 1
externalId:
# extraOutputs: |
opensearch:
enabled: false
match: "*"
host:
port: "443"
tls: "on"
path: ""
bufferSize: "5m"
pipeline:
awsRegion: "us-east-1"
awsAuth: "On"
awsStsEndpoint:
awsRoleArn:
awsExternalId:
awsServiceName:
httpUser:
httpPasswd:
index: "aws-fluent-bit"
type: "_doc"
logstashFormat: "off"
logstashPrefix: "logstash"
logstashDateFormat: "%Y.%m.%d"
timeKey: "@timestamp"
timeKeyFormat: "%Y-%m-%dT%H:%M:%S"
timeKeyNanos: "Off"
includeTagKey: "Off"
tagKey: "_flb-key"
generateId: "Off"
idKey:
writeOperation: "create"
replaceDots: "Off"
traceOutput: "Off"
traceError: "Off"
currentTimeIndex: "Off"
logstashPrefixKey:
suppressTypeName: "On"
# extraOutputs: |
# additionalOutputs: |
# [OUTPUT]
# Name file
# Format template
# Template {time} used={Mem.used} free={Mem.free} total={Mem.total}
serviceAccount:
create: true
annotations: {}
name:
resources:
limits:
memory: 250Mi
requests:
cpu: 50m
memory: 50Mi
## Assign a PriorityClassName to pods if set
# priorityClassName: system-node-critical
updateStrategy:
type: RollingUpdate
nodeSelector: {}
tolerations: []
affinity: {}
annotations:
{}
# iam.amazonaws.com/role: arn:aws:iam::123456789012:role/role-for-fluent-bit
# Specifies if aws-for-fluent-bit should be started in hostNetwork mode.
#
# This is required if using a custom CNI where the managed control plane nodes are unable to initiate
# network connections to the pods, for example using Calico CNI plugin on EKS. This is not required or
# recommended if using the Amazon VPC CNI plugin.
# Set hostNetwork to true and dnsPolicy to ClusterFirstWithHostNet to use Kubelet to get the Metadata for large clusters
# Check this link for more details https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/ContainerInsights-use-kubelet.html
hostNetwork: false
dnsPolicy: ClusterFirst
env: []
## To add extra environment variables to the pods, add as below
# env:
# - name: AWS_REGION
# valueFrom:
# configMapKeyRef:
# name: fluent-bit-cluster-info
# key: logs.region
# - name: CLUSTER_NAME
# valueFrom:
# configMapKeyRef:
# name: fluent-bit-cluster-info
# key: cluster.name
# - name: HOST_NAME
# valueFrom:
# fieldRef:
# fieldPath: spec.nodeName
volumes:
- name: varlog
hostPath:
path: /var/log
- name: varlibdockercontainers
hostPath:
path: /var/lib/docker/containers
volumeMounts:
- name: varlog
mountPath: /var/log
- name: varlibdockercontainers
mountPath: /var/lib/docker/containers
readOnly: true
# For livenessProbe to work - service.extraService must also enable Health_Check On
livenessProbe:
httpGet:
path: /api/v1/health
port: 2020
scheme: HTTP
failureThreshold: 2
initialDelaySeconds: 30
timeoutSeconds: 10
readinessProbe: {}
# httpGet:
# path: /api/v1/health
# port: 2020
# scheme: HTTP
# failureThreshold: 2
# initialDelaySeconds: 30
# timeoutSeconds: 10
serviceMonitor:
service:
type: ClusterIP
port: 2020
targetPort: 2020
extraPorts: []
# - port: 2021
# targetPort: 2021
# protocol: TCP
# name: metrics
## When set true then use a ServiceMonitor to configure scraping
enabled: false
interval: 30s
telemetryPath: /api/v1/metrics/prometheus
labels:
# app: example-application
# teamname: example
timeout: 10s
relabelings: []
targetLabels: []
metricRelabelings: []
extraEndpoints: []
# - port: metrics
# path: /metrics
# interval: 30s
# scrapeTimeout: 10s
# scheme: http