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

Copy extraContainers from fluent-bit to fluentd chart #562

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tghartland
Copy link

Copy both the templating for extraContainers and the examples in the values file from the fluent-bit chart.

This allows the fluentd chart to define sidecar containers as well.

Example use case:

volumes:
  - name: tls
    secret:
      secretName: fluentd-tls

volumeMounts:
  - name: tls
    mountPath: "/fluentd/certs"

extraContainers:
  - name: cert-reloader
    image: alpine:3.20
    command: ["/bin/sh"]
    args:
    - -c
    - |
      apk add --no-cache curl inotify-tools
      while true; do
        inotifywait -e delete_self /fluentd/certs/tls.crt
        echo "certificate changed at $(date)"
        curl -s -w "\n" http://127.0.0.1:24444/api/config.gracefulReload
        echo "certificates reloaded"
        sleep 1
      done
    volumeMounts:
    - name: tls
      mountPath: /fluentd/certs/

to trigger a reload of TLS certificates from a sidecar container, for use with the forward input plugin.

Copy the templating and the examples in
the values file from the fluent-bit chart.

Signed-off-by: Thomas Hartland <[email protected]>
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

Successfully merging this pull request may close these issues.

1 participant