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

[Fluent Operator] [Fluentd] Plugins

Open jmtt89 opened this issue 2 years ago • 1 comments

Hi, in documentation I see that they have a section for custom plugins, but I don't fully understand how they are configured, I saw that in the fluentd chart template, they support the plugins in a much easier way to understand just include plugins on values.yaml

## Fluentd list of plugins to install
##
plugins: []
# - fluent-plugin-out-http

i see on template the implementation

  {{- if .Values.plugins }}
    command:
    - "/bin/sh"
    - "-c"
    - |
      {{- range $plugin := .Values.plugins }}
        {{- print "fluent-gem install " $plugin | nindent 6 }}
      {{- end }}
      exec /fluentd/entrypoint.sh
  {{- end }}

ref: https://github.com/fluent/helm-charts/blob/main/charts/fluentd/templates/_pod.tpl

Would it be possible to include something similar in the operator chart?

jmtt89 avatar Oct 24 '23 06:10 jmtt89

Also interested in how this can be done. So far I managed to run my plugin by throwing it into Dockerfile:

FROM cr.fluentbit.io/fluent/fluent-bit

COPY my_out.so /fluent-bit/plugins/my_out.so
CMD ["/fluent-bit/bin/fluent-bit", "-c", "/fluent-bit/etc/fluent-bit.conf", "-e", "/fluent-bit/plugins/my_out.so", "-o", "my_out", "-p", "address=localhost:3000", "-m", "*"]

iltatarin avatar Apr 05 '24 14:04 iltatarin