fluent bit config fix

This commit is contained in:
Danijel Simeunovic
2026-02-13 13:07:54 +01:00
parent 5437af59d3
commit 370261fe58
2 changed files with 11 additions and 24 deletions

View File

@@ -1,22 +0,0 @@
apiVersion: batch/v1
kind: Job
metadata:
generateName: app-slack-notification-
annotations:
argocd.argoproj.io/hook: PostSync
argocd.argoproj.io/hook-delete-policy: HookSucceeded
spec:
template:
spec:
containers:
- name: slack-notification
image: curlimages/curl
command:
- curl
- '-X'
- POST
- '--data'
- '{"payload": "Cluster resources updated"}'
- 'https://hooks.slack.com/triggers/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'
restartPolicy: Never
backoffLimit: 2

View File

@@ -45,11 +45,20 @@ config:
outputs: |
[OUTPUT]
Name loki
Match *
Match kube.*
Host loki-gateway.monitoring.svc.cluster.local
Port 80
Labels job=fluent-bit
Auto_Kubernetes_Labels On
Label_Keys $kubernetes['namespace_name'],$kubernetes['pod_name'],$kubernetes['container_name']
Line_Format json
[OUTPUT]
Name loki
Match host.*
Host loki-gateway.monitoring.svc.cluster.local
Port 80
Labels job=fluent-bit-systemd
Line_Format json
tolerations:
- key: node-role.kubernetes.io/control-plane