Skip to content

Commit f58ea9a

Browse files
authored
helm: dynamic namespace, and k8s events via fluentbit (#1010)
dynamic namespace, and k8s events via fluentbit
1 parent 28b984a commit f58ea9a

File tree

4 files changed

+26
-8
lines changed

4 files changed

+26
-8
lines changed

helm/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ dependencies:
1515
repository: https://helm.vector.dev
1616
condition: vector.enabled
1717
- name: fluent-bit
18-
version: 0.25.0
18+
version: 0.48.0
1919
repository: https://fluent.github.io/helm-charts
2020
condition: fluent-bit.enabled

helm/charts/fluent-bit-0.25.0.tgz

-13.3 KB
Binary file not shown.

helm/charts/fluent-bit-0.48.1.tgz

14.5 KB
Binary file not shown.

helm/values.yaml

Lines changed: 25 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -295,12 +295,12 @@ vector:
295295
# See fluent-bit helm documentation to learn more:
296296
# https://github.com/fluent/helm-charts/tree/main/charts/fluent-bit
297297
fluent-bit:
298-
enabled: false
298+
enabled: true
299299
kind: DaemonSet
300300
replicaCount: 1
301301
image:
302-
repository: cr.fluentbit.io/fluent/fluent-bit
303-
tag: ""
302+
repository: parseable/fluent-bit
303+
tag: "v1"
304304
pullPolicy: Always
305305
testFramework:
306306
enabled: true
@@ -315,6 +315,7 @@ fluent-bit:
315315
rbac:
316316
create: true
317317
nodeAccess: false
318+
eventsAccess: true
318319
dnsPolicy: ClusterFirst
319320
service:
320321
type: ClusterIP
@@ -356,6 +357,16 @@ fluent-bit:
356357
Mem_Buf_Limit 5MB
357358
Skip_Long_Lines On
358359
360+
[INPUT]
361+
name kubernetes_events
362+
tag k8s_events
363+
364+
[INPUT]
365+
Name systemd
366+
Tag host.*
367+
Systemd_Filter _SYSTEMD_UNIT=kubelet.service
368+
Read_From_Tail On
369+
359370
## https://docs.fluentbit.io/manual/pipeline/filters
360371
filters: |
361372
[FILTER]
@@ -369,17 +380,24 @@ fluent-bit:
369380
## https://docs.fluentbit.io/manual/pipeline/outputs
370381
outputs: |
371382
[OUTPUT]
372-
Name http
383+
Name parseable
373384
Match kube.*
385+
P_Server parseable.parseable.svc.cluster.local
386+
P_Port 80
387+
P_Username admin
388+
P_Password admin
389+
P_Stream $NAMESPACE
390+
391+
[OUTPUT]
392+
Name http
393+
Match k8s_events
374394
host parseable.parseable.svc.cluster.local
375395
http_User admin
376396
http_Passwd admin
377397
format json
378398
port 80
379399
header Content-Type application/json
380-
header X-P-META-meta1 value1
381-
header X-P-TAG-tag1 value1
382-
header X-P-Stream fluentbitdemo
400+
header X-P-Stream k8s-events
383401
uri /api/v1/ingest
384402
json_date_key timestamp
385403
json_date_format iso8601

0 commit comments

Comments
 (0)