Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Fluent Operator] [Fluentd] Plugins #431

Open
jmtt89 opened this issue Oct 24, 2023 · 1 comment
Open

[Fluent Operator] [Fluentd] Plugins #431

jmtt89 opened this issue Oct 24, 2023 · 1 comment

Comments

@jmtt89
Copy link

jmtt89 commented Oct 24, 2023

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?

@iltatarin
Copy link

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", "*"]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants