helm-charts icon indicating copy to clipboard operation
helm-charts copied to clipboard

Fluent-bit: Unable to apply extraFiles configuration

Open bernardomp opened this issue 3 years ago • 2 comments

Hi,

I'm trying to use extraFiles variable to generate different configuration files for fluentbit. However, I am not able to load these files into fluentbit.

I think there is a bug in the ConfigMap https://github.com/fluent/helm-charts/blob/main/charts/fluent-bit/templates/configmap.yaml, because , from my point of view, I would expect some code to add the sentence @INCLUDE as it is mentioned in https://docs.fluentbit.io/manual/administration/configuring-fluent-bit/classic-mode/configuration-file#config_include_file-1 but I haven't found it anywhere in the chart

Is there any other possibility to use extraFiles that I didn't come up to?

Thank you

bernardomp avatar Dec 10 '22 15:12 bernardomp

Hello,

are there any updates on this issue? We want to include config files, but that's not possible with the helm chart.

Thanks!

Marvin0098 avatar Sep 30 '24 11:09 Marvin0098

I think the issue is it uses config.extraFiles in the template but the values file does not make this clear.

The following works fine for me to specify YAML config format files for example:

config:
  extraFiles:
    fluent-bit.yaml: |
      service:
        log_level: debug 

      pipeline:
        inputs:
          - name: dummy
            tag: dummy

        outputs:
          - name: stdout
            match: "*"

args:
  - --workdir=/fluent-bit/etc
  - --config=/fluent-bit/etc/conf/fluent-bit.yaml

patrick-stephens avatar May 15 '25 12:05 patrick-stephens

extraFiles seems broken: the files are not mounted in the container.

croneter avatar Nov 15 '25 10:11 croneter

@croneter please indicate how as it works fine for me using the correct config.extraFiles and not just extraFiles.

patrick-stephens avatar Nov 16 '25 11:11 patrick-stephens