Skip to content

Commit

Permalink
Adding namespaceClusterFbCfg to ClusterFluentBitConfig custom resourc…
Browse files Browse the repository at this point in the history
…e. (#1382)

* Deployed fluent-bit configmap and secret in namespaceClusterFbCfg namespace.
If it is not defined, it is in the namespace of the fluent-operator.
Signed-off-by: Bharathi Talakola <[email protected]>

Signed-off-by: btalakola <[email protected]>

* Deployed fluent-bit configmap and secret in namespaceClusterFbCfg namespace.
If it is not defined, it is in the namespace of the fluent-operator.
Signed-off-by: Bharathi Talakola <[email protected]>

Signed-off-by: btalakola <[email protected]>

---------

Signed-off-by: btalakola <[email protected]>
  • Loading branch information
btalakola authored Oct 24, 2024
1 parent 9fb7da8 commit d33b950
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions charts/fluent-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit d33b950

Please sign in to comment.