1# Default values for fluent-operator.
2# This is a YAML-formatted file.
3# Declare variables to be passed into your templates.
5# -- Container runtime used by your Kubernetes cluster. Supported values: containerd, crio, docker
6containerRuntime: containerd
7# -- Deploy default Fluent Bit pipeline to collect Kubernetes logs. See https://github.com/fluent/fluent-operator/tree/master/manifests/logging-stack
9# -- Fluent Operator configuration
12 # -- Fluent Operator image registry
14 # -- Fluent Operator image repository
15 repository: chainguard-private/fluent-operator
16 # -- Fluent Operator image tag (immutable tags are recommended). Overrides the image tag whose default is the chart appVersion
17 # @default -- Chart appVersion
18 tag: 3.11.0-r4@sha256:fda4ac75519db2ed70d90e7c096cdc58e60a2f64a731995e94fa0c074028a1c0
19 # -- Enable Fluent Operator deployment. Set to false to disable creation of ClusterRole, ClusterRoleBinding, Deployment, and ServiceAccount
21 # -- Node selector for Fluent Operator pods
22 # Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#nodeselector
24 # -- Affinity for Fluent Operator pods
25 # Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#affinity-and-anti-affinity
27 # -- Tolerations for Fluent Operator pods
28 # Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
30 # -- Priority class name for Fluent Operator pods
31 # Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/#priorityclass
33 # -- Pod security context for Fluent Operator
34 # Ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
43 # -- Specifies whether to create the ClusterRole and ClusterRoleBinding
49 # -- ClusterRoleBinding name
51 # -- Additional RBAC rules for Fluent Operator ClusterRole. Operator cannot give permissions it does not have
53 # -- Container security context for Fluent Operator container
54 # Ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
59 allowPrivilegeEscalation: false
60 readOnlyRootFilesystem: true
66 # -- Liveness probe for Fluent Operator
67 # Ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/
72 initialDelaySeconds: 15
76 # -- Readiness probe for Fluent Operator
81 initialDelaySeconds: 5
85 # -- Fluent Operator resource requests and limits
93 # -- Annotations to add to Fluent Operator pods
95 # -- Image pull secrets for Fluent Operator
96 # Ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
98 # - name: "image-pull-secret"
99 # -- Labels to add to Fluent Operator pods
101 # myExampleLabel: someValue
102 # -- Disable specific component controllers. Value can be "fluent-bit" or "fluentd" to disable that controller
103 disableComponentControllers: ""
104 # -- Extra arguments for the Fluent Operator controller
106 # - --watch-namespaces=logging
109 # -- Enable Fluent Operator service
113 # -- Service port name
117 # -- Annotations for Fluent Operator service
119 # -- Labels for Fluent Operator service
122 # -- Enable Prometheus ServiceMonitor for Fluent Operator
130 # -- Use HTTPS for scraping
132 # -- TLS configuration for ServiceMonitor
134 # -- Relabeling configs for ServiceMonitor
136 # -- Metric relabeling configs for ServiceMonitor
137 metricRelabelings: []
139 # -- ServiceAccount name for Fluent Operator
140 name: fluent-operator
141# -- Fluent Bit configuration
143 # -- Enable Fluent Bit deployment
145 # -- Override the namespace for FluentBit resources; defaults to .Release.Namespace
146 namespaceOverride: ""
148 # -- Allow adding custom annotations to the FluentBit resource's metadata
151 # -- Enable Prometheus ServiceMonitor for Fluent Bit
156 path: /api/v2/metrics/prometheus
159 # -- Use HTTPS for scraping
161 # -- TLS configuration for ServiceMonitor
163 # -- Relabeling configs for ServiceMonitor
165 # -- Metric relabeling configs for ServiceMonitor
166 metricRelabelings: []
168 # -- Enable liveness probe
173 # -- Initial delay before liveness probe starts
174 initialDelaySeconds: 10
175 # -- Period between liveness probes
177 # -- Timeout for liveness probe
179 # -- Success threshold for liveness probe
181 # -- Failure threshold for liveness probe
184 # -- Fluent Bit image registry
186 # -- Fluent Bit image repository
187 repository: chainguard-private/fluent-bit
188 # -- Fluent Bit image tag
189 # renovate: datasource=docker depName=ghcr.io/fluent/fluent-operator/fluent-bit
190 tag: 5.2.1-r0@sha256:4e35f88b84698f925305388689efa480c4c2c6b3296d5af33b1eedc528fed0eb
191 # -- Fluent Bit resource requests and limits. You can adjust it based on the log volume.
192 # If you do want to specify resources, adjust them as necessary
200 # -- Annotations to add to each Fluent Bit pod
201 # Request to Fluent Bit to exclude or not the logs generated by the Pod: `fluentbit.io/exclude: "true"`
202 # Prometheus can use this tag to automatically discover the Pod and collect monitoring data: `prometheus.io/scrape: "true"`
204 ## Request to Fluent Bit to exclude or not the logs generated by the Pod.
205 # fluentbit.io/exclude: "true"
206 ## Prometheus can use this tag to automatically discover the Pod and collect monitoring data
207 # prometheus.io/scrape: "true"
208 # -- Additional custom labels for Fluent Bit pods
210 # -- Additional custom annotations for Fluent Bit ServiceAccount
211 serviceAccountAnnotations: {}
212 # -- Name of an existing ServiceAccount, in the FluentBit namespace, for the Fluent Bit pods. When set, the operator doesn't create one
213 # and serviceAccountAnnotations is ignored.
214 serviceAccountName: ""
215 # -- Specify storage for position db. You will use it if tail input is enabled.
216 # Ref: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.31/#volumesource-v1-core
219 path: /var/lib/fluent-bit/
220 # -- Image pull secrets for Fluent Bit
221 # Ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
223 # - name: "image-pull-secret"
224 # -- Log level for Fluent Bit
226 # -- Secrets to mount in Fluent Bit pods
228 # -- Use host network for Fluent Bit DaemonSet
230 # -- Additional ports for Fluent Bit
232 # - containerPort: 514
235 # -- Pod security context for Fluent Bit pods
236 # Ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
237 podSecurityContext: {}
238 # -- Security context for Fluent Bit container
239 # Ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
241 # -- Additional volumes that can be mounted by containers belonging to the pod
242 additionalVolumes: []
243 # -- Additional RBAC rules which will be applied to the Fluent Bit ClusterRole
244 # NOTE: As fluent-bit is managed by the fluent-operator, fluent-bit can only be granted permissions the operator also has
245 # Ref: https://kubernetes.io/docs/reference/access-authn-authz/rbac/#rolebinding-and-clusterrolebinding
247 # -- Additional volume mounts to mount into the container's filesystem
248 additionalVolumesMounts: []
249 # -- Affinity configuration for Fluent Bit pods
250 # Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#affinity-and-anti-affinity
253 requiredDuringSchedulingIgnoredDuringExecution:
256 - key: node-role.kubernetes.io/edge
257 operator: DoesNotExist
258 # -- Init containers for Fluent Bit pods
259 # Ref: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/
261 # -- Node selector for Fluent Bit pods
262 # Ref: https://kubernetes.io/docs/user-guide/node-selection/
264 # -- Node tolerations for Fluent Bit pods
265 # Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
268 # -- Priority class for Fluent Bit pods
269 # Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/#priorityclass
270 priorityClassName: ""
271 # -- Custom command for Fluent Bit containers
273 # -- Custom command line arguments for Fluent Bit containers
275 # -- Environment variables that can be passed to Fluent Bit pods
279 # -- Scheduler name for Fluent Bit pods
281 # Remove the above empty volumes and volumesMounts, and then set additionalVolumes and additionalVolumesMounts as below if you want to collect node exporter metrics
289 # Uncomment the code if you intend to create the volume for buffer storage in case the storage type "filesystem" is being used in the configuration of the fluentbit service.
292 # path: /tmp/fluent-bit-buffer
293 # additionalVolumesMounts:
294 # - mountPath: /host/sys
295 # mountPropagation: HostToContainer
298 # - mountPath: /host/proc
299 # mountPropagation: HostToContainer
302 # Uncomment the code if you intend to mount the volume for buffer storage in case the storage type "filesystem" is being used in the configuration of the fluentbit service.
303 # - mountPath: /host/fluent-bit-buffer
304 # mountPropagation: HostToContainer
307 # -- Namespace selector for Fluent Bit configuration
308 namespaceFluentBitCfgSelector: {}
309 # -- Configure the format of the config file to either classic or yaml. Default to classic when this value is not set
310 # configFileFormat: yaml
312 # Set a limit of memory that Tail plugin can use when appending data to the Engine.
313 # You can find more details here: https://docs.fluentbit.io/manual/pipeline/inputs/tail#config
314 # If the limit is reach, it will be paused; when the data is flushed it resumes.
315 # if the inbound traffic is less than 2.4Mbps, setting memBufLimit to 5MB is enough
316 # if the inbound traffic is less than 4.0Mbps, setting memBufLimit to 10MB is enough
317 # if the inbound traffic is less than 13.64Mbps, setting memBufLimit to 50MB is enough
320 # -- Enable tail input
322 # -- Refresh interval for tail input in seconds
323 refreshIntervalSeconds: 10
324 # -- Memory buffer limit for tail input
326 # -- Buffer max size for tail input
328 # -- Buffer chunk size for tail input
330 # -- Path to container logs
331 path: "/var/log/containers/*.log"
332 # -- Commas separated, paths to exclude,
333 # ie "/var/log/containers/fluent*,*.zip"
335 # -- Skip long lines in logs
337 # -- Skip empty lines in logs
339 # -- Read from head of log file
341 # -- Storage type for tail input buffering. Use "filesystem" for persistent buffering.
343 # -- Pause input when chunks overlimit
344 pauseOnChunksOverlimit: "off"
345 # -- Multiline parser for tail input
346 # multilineParser: "docker, cri"
348 # -- Enable systemd input
351 # -- Enable systemd filter
353 # -- Systemd unit filters
355 # -- Path to systemd journal
356 path: "/var/log/journal"
357 # -- Include kubelet logs from systemd
359 # -- Strip underscores from systemd field names
360 stripUnderscores: "off"
361 # -- Storage type for systemd input buffering. Use "filesystem" for persistent buffering.
363 # -- Pause input when chunks overlimit
364 pauseOnChunksOverlimit: "off"
365 # -- Node exporter metrics input configuration
366 nodeExporterMetrics: {}
367 # uncomment below nodeExporterMetrics section if you want to collect node exporter metrics
368 # nodeExporterMetrics:
370 # scrapeInterval: 15s
374 # -- Fluent Bit metrics input configuration
376 # uncomment below fluentBitMetrics section if you want to collect fluentBit metrics
378 # scrapeInterval: "2"
379 # scrapeOnStart: true
382 # Configure the output plugin parameter in FluentBit.
383 # You can set enable to true to output logs to the specified location.
385 # You can find more supported output plugins here: https://github.com/fluent/fluent-operator/tree/master/docs/plugins/fluentbit/output
387 # -- Enable Elasticsearch output
389 # -- Elasticsearch host
390 host: "<Elasticsearch url like elasticsearch-logging-data.kubesphere-logging-system.svc>"
391 # -- Elasticsearch port
393 # -- Logstash prefix for Elasticsearch indices
394 logstashPrefix: ks-logstash-log
395 # -- Buffer size for Elasticsearch output
397 # -- Trace errors in Elasticsearch output
399 # logstashPrefixKey: ks-logstash-log
400 # suppressTypeName: "On"
402 # index: "fluent-bit"
413 # logstashFormat: true
415 # writeOperation: upsert
420 # caFile: "<Absolute path to CA certificate file>"
421 # caPath: "<Absolute path to scan for certificate files>"
422 # crtFile: "<Absolute path to private Key file>"
423 # keyFile: "<Absolute path to private Key file>"
425 # vhost: "<Hostname to be used for TLS SNI extension>"
427 # -- Enable Kafka output
429 # -- Log level for Kafka output
431 # -- Kafka broker list
432 brokers: "<kafka broker list like xxx.xxx.xxx.xxx:9092,yyy.yyy.yyy.yyy:9092>"
435 # -- OpenTelemetry output configuration
437 # You can configure the opentelemetry-related configuration here
438 # -- OpenSearch output configuration
440 # You can configure the opensearch-related configuration here
442 # -- Enable stdout output
444 # -- Prometheus metrics exporter configuration
445 # Uncomment the following section to enable Prometheus metrics exporter.
446 prometheusMetricsExporter: {}
447 # prometheusMetricsExporter:
448 # match: "fb.metrics"
455 # Loki fluentbit ClusterOutput, to be encapsulated in fluentbit config
456 # See https://github.com/fluent/fluent-operator/blob/master/docs/plugins/fluentbit/output/loki.md
457 # See https://docs.fluentbit.io/manual/pipeline/outputs/loki
459 # -- Enable Loki output
461 # -- Retry limit for Loki output
462 retryLimit: "no_limits"
463 # -- Log level for Loki output
469 # By default no basic auth and no tenant ID are sent. They are left unset here on purpose:
470 # a default string would make Helm warn when you give a secret reference below instead.
471 # Either, give http{User,Password},tenantID string values specifying them directly
473 # httpPassword: mypass
475 # Or give {http{User,Password},tenantID} as reference to secrets that you have manually installed into your kubernetes cluster
495 # To use bearer token auth instead of http basic auth
496 # bearerToken: ey....
497 # or with existing secret
502 # name: bearerTokenSecret
504 # labels: [] # String list of <name>=<value>
505 # labelKeys: [] # String list of <key>
506 # removeKeys: [] # String list of <key>
507 # labelMapPath: '' # String, path to file, ex /here/it/is
509 # lineFormat: '' # String
510 # autoKubernetesLabels: on
511 # tenantIDKey: # String
512 # tls: {} # *plugins.TLS fluentbit docs
513 # -- Stackdriver output configuration
515 # You can configure the stackdriver configuration here
517 # -- Any valid Fluent Bit `[service]` field can be set here. Values are
518 # merged over the chart defaults (`parsersFile`, `httpServer`, and
519 # `logLevel` when `fluentbit.logLevel` is set), with the values below
520 # taking precedence on conflicts. The keys shown below are only common
521 # examples, not an exhaustive list. Note: overriding `parsersFile` or
522 # `httpServer` may break parser loading or the metrics/HTTP endpoint.
523 # Scheduler configuration for retry wait times (supported in Fluent Bit >= 1.8.7)
524 # -- Scheduler base for exponential backoff (seconds)
526 # -- Scheduler cap for maximum retry time (seconds)
528 # -- Storage configuration for Fluent Bit buffering
530 # path: "/host/fluent-bit-buffer/"
531 # backlogMemLimit: "50MB"
533 # deleteIrrecoverableChunks: "on"
538 # Configure the default filters in FluentBit.
539 # The `filter` will filter and parse the collected log information and output the logs into a uniform format. You can choose whether to turn this on or not.
542 # -- Enable multiline filter
544 # -- Key content field for multiline filter
546 # -- Buffer for multiline filter
548 # -- Emitter memory buffer limit in MB
549 emitterMemBufLimit: 120
550 # -- Emitter type for multiline filter
552 # -- Flush interval in milliseconds
554 # -- Mode can be either "parser" or "partial_message"
556 # -- Name for the emitter input instance which re-emits the completed records at the beginning of the pipeline
557 # emitterName: my-emitter
558 # -- Multiline parsers to use
563 # use custom multiline parser need set .Values.parsers.javaMultiline.enable = true
566 # -- Enable Kubernetes metadata filter
568 # -- Include Kubernetes labels in logs
570 # -- Include Kubernetes annotations in logs
573 # This is customized lua containerd log format converter, you can refer here:
574 # https://github.com/fluent/fluent-operator/blob/master/charts/fluent-operator/templates/fluentbit-clusterfilter-containerd.yaml
575 # https://github.com/fluent/fluent-operator/blob/master/charts/fluent-operator/templates/fluentbit-containerd-config.yaml
576 # -- Enable containerd log format converter filter
579 # -- Enable systemd filter
582 # -- Enable KubeEdge integration for Fluent Bit
584 prometheusRemoteWrite:
585 # -- Host of a cloud-side Prometheus-compatible server that can receive Prometheus remote write data
586 host: "<cloud-prometheus-service-host>"
587 # -- Port of a cloud-side Prometheus-compatible server that can receive Prometheus remote write data
588 port: "<cloud-prometheus-service-port>"
589 # -- Removes the hostPath mounts for varlibcontainers, varlogs and systemd
590 disableLogVolumes: false
593 # -- Enable Java multiline parser for generic springboot multiline log format
595 # -- Using namespaceClusterFbCfg, deploy fluent-bit configmap and secret in this namespace.
596 # If it is not defined, it is in the namespace of the fluent-operator.
597 namespaceClusterFbCfg: ""
598# -- Fluentd configuration
600 # -- Enable Fluentd deployment
604 # -- Fluentd deployment mode. Valid values: "collector" (StatefulSet) or "agent" (DaemonSet)
609 # -- Fluentd image registry
611 # -- Fluentd image repository
612 repository: chainguard-private/fluent-operator-fluentd
613 # renovate: datasource=docker depName=ghcr.io/fluent/fluent-operator/fluentd
614 # -- Fluentd image tag
615 tag: 1.19.4-r0@sha256:3379cb4e95cfe30b15e83912e2bf7b89d2bb2af4497cfb678c8a1d7185356448
616 # -- Number of Fluentd replicas
617 # Applicable when the mode is "collector", and will be ignored when the mode is "agent"
620 # -- Forward input port
622 # -- Retain metadata when forwarding in forward mode.
623 # Set to false for Fluentd compatibility with Fluent Bit v5.0.5+.
624 retainMetadataInForwardMode: ~
625 # -- Limit the size of the Fluent Bit filesystem buffer for the forward output, e.g. "5G".
626 # Only applies to inputs that use filesystem storage. Empty means no limit.
628 # -- Namespaces to watch for Fluentd resources
632 # -- Fluentd resource requests and limits
640 # -- Scheduler name for Fluentd pods
642 # -- Environment variables that can be passed to Fluentd pods
646 # -- Image pull secrets for Fluentd
647 # Ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
648 # -- Pod security context for Fluentd pod
649 # Ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
650 podSecurityContext: {}
651 # -- Container security context for Fluentd container
652 # Ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
654 # -- Image pull secrets for Fluentd
656 # - name: "image-pull-secret"
657 # -- Log level for Fluentd
659 # -- Priority class name for Fluentd pods
660 priorityClassName: ""
661 # -- Extra configuration for Fluentd
663 # Configure the output plugin parameter in Fluentd.
664 # Fluentd is disabled by default, if you enable it make sure to also set up an output to use.
667 # -- Enable Elasticsearch output for Fluentd
669 # -- Elasticsearch host
670 host: elasticsearch-logging-data.kubesphere-logging-system.svc
671 # -- Elasticsearch port
673 # -- Logstash prefix for Elasticsearch indices
674 logstashPrefix: ks-logstash-log
675 # logstashFormat: true
677 # -- Enable buffer for Elasticsearch output
684 # -- Enable Kafka output for Fluentd
686 # -- Kafka broker list
687 brokers: "my-cluster-kafka-bootstrap.default.svc:9091,my-cluster-kafka-bootstrap.default.svc:9092,my-cluster-kafka-bootstrap.default.svc:9093"
689 topicKey: kubernetes_ns
691 # -- Enable buffer for Kafka output
697 # -- OpenSearch output configuration for Fluentd
699# -- Override name of the chart
701# -- Override full name of the chart
703# -- Override namespace where resources are deployed