41 lines
1.2 KiB
YAML
41 lines
1.2 KiB
YAML
# Fluent Bit — noble lab (DaemonSet; ship Kubernetes container logs to Loki gateway).
|
|
#
|
|
# Chart: fluent/fluent-bit — pin version on install (e.g. 0.56.0).
|
|
# Install **after** Loki so `loki-gateway.loki.svc` exists.
|
|
#
|
|
# Talos: only **tail** `/var/log/containers` (no host **systemd** input — journal layout differs from typical Linux).
|
|
#
|
|
# kubectl apply -f clusters/noble/apps/fluent-bit/namespace.yaml
|
|
# helm repo add fluent https://fluent.github.io/helm-charts
|
|
# helm repo update
|
|
# helm upgrade --install fluent-bit fluent/fluent-bit -n logging \
|
|
# --version 0.56.0 -f clusters/noble/apps/fluent-bit/values.yaml --wait --timeout 15m
|
|
|
|
config:
|
|
inputs: |
|
|
[INPUT]
|
|
Name tail
|
|
Path /var/log/containers/*.log
|
|
multiline.parser docker, cri
|
|
Tag kube.*
|
|
Mem_Buf_Limit 5MB
|
|
Skip_Long_Lines On
|
|
|
|
filters: |
|
|
[FILTER]
|
|
Name kubernetes
|
|
Match kube.*
|
|
Merge_Log On
|
|
Keep_Log Off
|
|
K8S-Logging.Parser On
|
|
K8S-Logging.Exclude On
|
|
|
|
outputs: |
|
|
[OUTPUT]
|
|
Name loki
|
|
Match kube.*
|
|
Host loki-gateway.loki.svc.cluster.local
|
|
Port 80
|
|
tls Off
|
|
labels job=fluent-bit
|