Skip to content

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.

@patrick-stephens
Copy link
Contributor

Please can you rebase on the latest versions so we can bring in the updated CI?

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

Signed-off-by: Thomas Hartland <[email protected]>
@tghartland
Copy link
Author

I have rebased now.

The reference to the bitnami/kubectl image in the values file comment hasn't aged very well, but I'll leave it there to be consistent with the fluent-bit chart which still has the same comment.

@patrick-stephens
Copy link
Contributor

Thanks, it looks fine to me but I'm not a fluentd user so will let someone who is chime in

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.

2 participants