kube-logging / logging-operator

Logging operator for Kubernetes
https://kube-logging.dev
Apache License 2.0
1.53k stars 326 forks source link

feat: kubernetes namespace labels and annotations with fluent-bit 3.0 #1696

Closed pepov closed 5 months ago

pepov commented 5 months ago

This PR adds new fields for the new fluent-bit kubernetes filter options to allow for enriching logs with kubernetes namespace labels and annotations right at the source

apiVersion: logging.banzaicloud.io/v1beta1
kind: FluentbitAgent
metadata:
  name: namespace-label-test
spec:
  filterKubernetes:
    namespace_annotations: "On"
    namespace_labels: "On"
  image:
    repository: ghcr.io/fluent/fluent-bit/unstable
    tag: latest
image