diff --git a/charts/fluent-operator/templates/fluentbitconfig-fluentBitConfig.yaml b/charts/fluent-operator/templates/fluentbitconfig-fluentBitConfig.yaml index 0695cdba7..7eb2a0f3a 100644 --- a/charts/fluent-operator/templates/fluentbitconfig-fluentBitConfig.yaml +++ b/charts/fluent-operator/templates/fluentbitconfig-fluentBitConfig.yaml @@ -7,6 +7,9 @@ metadata: labels: app.kubernetes.io/name: fluent-bit spec: + {{- if .Values.fluentbit.namespaceClusterFbCfg }} + namespace: {{ .Values.fluentbit.namespaceClusterFbCfg }} + {{- end }} service: parsersFiles: - /fluent-bit/etc/parsers.conf diff --git a/charts/fluent-operator/values.yaml b/charts/fluent-operator/values.yaml index 7e05ae842..7be9eb0ca 100644 --- a/charts/fluent-operator/values.yaml +++ b/charts/fluent-operator/values.yaml @@ -388,6 +388,9 @@ fluentbit: javaMultiline: # use in filter for parser generic springboot multiline log format enable: false + #Using namespaceClusterFbCfg, deploy fluent-bit configmap and secret in this namespace. + #If it is not defined, it is in the namespace of the fluent-operator. + namespaceClusterFbCfg: "" fluentd: # Installs a sub chart carrying the CRDs for the fluentd controller. The sub chart is enabled by default.