From 09168bb071e7510fdde871b76ea57302a7b18bb3 Mon Sep 17 00:00:00 2001 From: Harsh Vora Date: Fri, 12 Jul 2024 15:34:01 +0530 Subject: [PATCH] Parametering few more plugins --- .../templates/fluentbit-clusterfilter-containerd.yaml | 2 +- .../templates/fluentbit-clusterfilter-kubernetes.yaml | 2 +- .../templates/fluentbit-clusterfilter-multiline.yaml | 2 +- charts/fluent-operator/values.yaml | 3 +++ 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/charts/fluent-operator/templates/fluentbit-clusterfilter-containerd.yaml b/charts/fluent-operator/templates/fluentbit-clusterfilter-containerd.yaml index 7c1fd9435..12a6d47e5 100644 --- a/charts/fluent-operator/templates/fluentbit-clusterfilter-containerd.yaml +++ b/charts/fluent-operator/templates/fluentbit-clusterfilter-containerd.yaml @@ -9,7 +9,7 @@ metadata: fluentbit.fluent.io/enabled: "true" fluentbit.fluent.io/component: logging spec: - match: kube.* + match: {{ .Values.fluentbit.filter.containerd.match }} filters: - lua: script: diff --git a/charts/fluent-operator/templates/fluentbit-clusterfilter-kubernetes.yaml b/charts/fluent-operator/templates/fluentbit-clusterfilter-kubernetes.yaml index d296eeb27..9fc62ef41 100644 --- a/charts/fluent-operator/templates/fluentbit-clusterfilter-kubernetes.yaml +++ b/charts/fluent-operator/templates/fluentbit-clusterfilter-kubernetes.yaml @@ -9,7 +9,7 @@ metadata: fluentbit.fluent.io/enabled: "true" fluentbit.fluent.io/component: logging spec: - match: kube.* + match: {{ .Values.fluentbit.filter.kubernetes.match }} filters: - kubernetes: kubeURL: https://kubernetes.default.svc:443 diff --git a/charts/fluent-operator/templates/fluentbit-clusterfilter-multiline.yaml b/charts/fluent-operator/templates/fluentbit-clusterfilter-multiline.yaml index 58144969f..d130ba2e0 100644 --- a/charts/fluent-operator/templates/fluentbit-clusterfilter-multiline.yaml +++ b/charts/fluent-operator/templates/fluentbit-clusterfilter-multiline.yaml @@ -9,7 +9,7 @@ metadata: fluentbit.fluent.io/enabled: "true" fluentbit.fluent.io/component: logging spec: - match: kube.* + match: {{ .Values.fluentbit.filter.multiline.match }} filters: - multiline: keyContent: {{ .Values.fluentbit.filter.multiline.keyContent | quote }} diff --git a/charts/fluent-operator/values.yaml b/charts/fluent-operator/values.yaml index d2f97470c..8dbcfd46f 100644 --- a/charts/fluent-operator/values.yaml +++ b/charts/fluent-operator/values.yaml @@ -345,6 +345,7 @@ fluentbit: multiline: enable: false keyContent: log + match: "kube.*" # emitterMemBufLimit 120 (MB) emitterMemBufLimit: 120 parsers: @@ -357,11 +358,13 @@ fluentbit: enable: true labels: false annotations: false + match: "kube.*" containerd: # This is customized lua containerd log format converter, you can refer here: # https://github.com/fluent/fluent-operator/blob/master/charts/fluent-operator/templates/fluentbit-clusterfilter-containerd.yaml # https://github.com/fluent/fluent-operator/blob/master/charts/fluent-operator/templates/fluentbit-containerd-config.yaml enable: true + match: "kube.*" systemd: enable: true