fluentd

by QuenchWorks

Helm chartv0.0.8App 1.19.4Apache-2.0Verified publisher

Fluentd as a log aggregator: receives forward and HTTP traffic from collectors and apps, buffers on a PVC and routes by your config. Hardened by QuenchWorks, nonroot, CVE-gated, cosign-signed and pinned by digest.

About this chart

Fluentd

Fluentd collects, parses, buffers and routes logs. This chart runs it as an aggregator: log shippers (Fluent Bit, Vector, fluent-logger libraries) send to it over the forward protocol or HTTP, and your pipeline routes the events on. It runs on the QuenchWorks fluentd image: Fluentd 1.19 on Wolfi Ruby 4.0, nonroot, read-only root filesystem, 0 fixable CVEs, cosign-signed and pinned by digest.

Install

helm install logs oci://ghcr.io/quenchworks/charts/fluentd

The default pipeline accepts forward (24224) and HTTP (9880) and prints every event to stdout. Replace it with the config value (fluent.conf syntax), and keep ports in step with its sources.

Plugins

The image carries Fluentd's built-in plugins (forward, http, tail, file, stdout, ...). Add others by building a derived image:

FROM ghcr.io/quenchworks/images/fluentd:1.19.3
RUN ["/usr/bin/ruby", "/usr/bin/gem", "install", "--no-document", "fluent-plugin-s3"]

GEM_HOME is preset, so gems land beside Fluentd's own. The derived image needs a build stage with write access; the runtime image is nonroot and has no shell.

Values

KeyDefaultMeaning
configforward + http to stdoutthe pipeline, as fluent.conf text
portsforward 24224, http 9880container and Service ports for your sources
replicas1aggregator replicas (each with its own buffer PVC)
persistence.*8Gi PVC/fluentd/buffer, for file buffers that survive restarts
extraArgs / extraEnv[]extra fluentd flags / env

This chart does not run Fluentd as a node log collector (a DaemonSet reading /var/log/pods needs root); use the logging-stack chart's Vector for that.

The release gate installs the chart on kind, sends one event to the HTTP input through a port-forward and one over the forward protocol with fluent-cat from another pod, and requires both in the aggregator's output.

The chart depends on the quench-common chart from oci://ghcr.io/quenchworks/charts.

Deploy fluentd with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has fluentd on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartfluentd is pinned at v0.0.8 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply