ClusterFluentBitConfig is a Fluent Operator custom resource that assembles cluster-wide Fluent Bit inputs, filters, and outputs through selectable plugin configurations. It can target specific namespaces and keep configuration values, including credentials, in Kubernetes secrets. section 4.8
Use the resource to coordinate these configuration areas:
- Select Input, Filter, and Output resources with label-based match expressions. section 4.8
- Control log-ingestion behavior such as buffer limits and handling of overlong lines. section 4.8
- Route matching records to an output such as Elasticsearch using tags like kube.*. 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"]
Inspect the selector structure used by the analogous FluentBitConfig resource: enabled labels select the input, filter, and output components that form the generated Fluent Bit configuration. section 4.8
