fluent bit config fix
This commit is contained in:
@@ -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
|
|
||||||
@@ -45,11 +45,20 @@ config:
|
|||||||
outputs: |
|
outputs: |
|
||||||
[OUTPUT]
|
[OUTPUT]
|
||||||
Name loki
|
Name loki
|
||||||
Match *
|
Match kube.*
|
||||||
Host loki-gateway.monitoring.svc.cluster.local
|
Host loki-gateway.monitoring.svc.cluster.local
|
||||||
Port 80
|
Port 80
|
||||||
Labels job=fluent-bit
|
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:
|
tolerations:
|
||||||
- key: node-role.kubernetes.io/control-plane
|
- key: node-role.kubernetes.io/control-plane
|
||||||
|
|||||||
Reference in New Issue
Block a user