helm-charts
helm-charts copied to clipboard
[Fluent Operator] [Fluentd] Plugins
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?
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", "*"]