FluentBitConfig is a Fluent Operator custom resource that selects namespace-level Fluent Bit input, filter, and output configurations. Its selectors assemble a dynamic configuration from separately defined resources. section 4.8
Configure the resource by combining:
- Input and output resources following the conventions used by their cluster-level counterparts. section 4.8
Listing 4.10 Helm chart config: fluentbit_v1alpha2_fluentbitconfig.yaml
apiVersion: fluentbit.fluent.io/v1alpha2
kind: FluentBitConfig
metadata:
name: fluentbitconfig-sample
spec:
service: #1
flush: 1
daemon: false
logLevel: info
parsersFile: parsers.conf
inputSelector: #2
matchExpressions: #3
- key: fluentbit.fluent.io/enabled
operator: In
values: ["true"] #4
filterSelector: #5
matchExpressions:
- key: fluentbit.fluent.io/enabled
operator: In
values: ["true"]
outputSelector:
matchExpressions:
- key: fluentbit.fluent.io/enabled
operator: In
values: ["true"]
Use the sample manifest to inspect the service block and the three selector blocks that assemble the Fluent Bit configuration. section 4.8
