packaged by Chainguard
Contact our team to test out this image for free. Please also indicate any other images you would like to evaluate.
Minimal Logging operator for Kubernetes
Chainguard Containers are regularly-updated, secure-by-default container images.
For those with access, this container image is available on cgr.dev:
Be sure to replace the ORGANIZATION placeholder with the name used for your organization's private repository within the Chainguard Registry.
The logging-operator project publishes several container images from a single repository. Chainguard builds each of them separately, and every one is a drop-in replacement for its upstream counterpart, with the same entrypoint, arguments, and environment variables:
| Chainguard container image | Upstream container image |
|---|---|
|
|
|
|
|
|
kube-logging-operator is also a drop-in replacement for the older banzaicloud/logging-operator image.
The same project also publishes the Fluentd image and the buffer volume metrics sidecar, which Chainguard ships as kube-logging-operator-fluentd and kube-logging-operator-node-exporter. The Getting Started example below references the Fluentd one.
Upstream builds the operator and the config reloader on gcr.io/distroless/static and fluentd-drain-watch on Alpine. The Chainguard images are built on Wolfi. kube-logging-operator-fluentd-drain-watch is a POSIX shell script rather than a compiled binary, so it carries BusyBox and curl as runtime dependencies, just as the upstream image does; the other two contain no shell or package manager.
All three run as the nonroot user 65532, where the upstream images run as root. This does not affect the drainer, because the operator applies its own pod security context to that job.
The operator watches Logging, Flow, and Output custom resources and reconciles them into a Fluent Bit and Fluentd log collection pipeline. The supported way to install it is the official Helm chart.
Write a values file that points each component of the pipeline at a Chainguard container image:
Be sure to replace the ORGANIZATION placeholder with the name used for your organization's private repository within the Chainguard Registry.
Install the chart with that values file:
Confirm that the operator has reconciled the pipeline:
The scaling.drain block above is what puts kube-logging-operator-fluentd-drain-watch to work. When you reduce the Fluentd replica count, the operator leaves the removed replica's buffer volume behind and starts a drainer job that pairs a Fluentd container with a drain-watch container sharing that volume. drain-watch waits for Fluentd's RPC endpoint, watches the buffer directory, and calls killWorkers only once the last *.buffer file has been flushed, so scaling down does not drop buffered log records.
The container reads its configuration entirely from the environment:
| Variable | Default | Purpose |
|---|---|---|
| none | Directory to watch for |
|
| Seconds between buffer directory checks. |
|
| Address of the Fluentd RPC endpoint. |
|
| Address of the optional buffer volume metrics sidecar. |
|
| Seconds to wait for that sidecar before assuming it is not deployed. |
|
| Seconds to wait for Fluentd to stop after |
When the operator builds the drainer job it sets BUFFER_PATH and CHECK_INTERVAL itself and leaves the rest at their defaults, so under Helm these are behavioral documentation rather than knobs. They matter when you run the container yourself, which is also the quickest way to see how it behaves. With nothing listening on the RPC address, it parks in its first loop and reports why:
It waits indefinitely, because in the drainer job Fluentd is expected to appear alongside it. Stop it when you are done:
KILL_TIMEOUT is the one worth understanding before a large scale-down. After drain-watch calls killWorkers, Fluentd finishes flushing in-flight chunks before it closes the RPC endpoint. If that takes longer than the timeout, drain-watch exits non-zero, the drainer job fails, and the buffer volume is left undrained rather than silently discarded.
Chainguard's free tier of Starter container images are built with Wolfi, our minimal Linux undistro.
All other Chainguard Containers are built with Chainguard OS, Chainguard's minimal Linux operating system designed to produce container images that meet the requirements of a more secure software supply chain.
The main features of Chainguard Containers include:
For cases where you need container images with shells and package managers to build or debug, most Chainguard Containers come paired with a development, or -dev, variant.
In all other cases, including Chainguard Containers tagged as :latest or with a specific version number, the container images include only an open-source application and its runtime dependencies. These minimal container images typically do not contain a shell or package manager.
Although the -dev container image variants have similar security features as their more minimal versions, they include additional software that is typically not necessary in production environments. We recommend using multi-stage builds to copy artifacts from the -dev variant into a more minimal production image.
To improve security, Chainguard Containers include only essential dependencies. Need more packages? Chainguard customers can use Custom Assembly to add packages, either through the Console, chainctl, or API.
To use Custom Assembly in the Chainguard Console: navigate to the image you'd like to customize in your Organization's list of images, and click on the Customize image button at the top of the page.
Refer to our Chainguard Containers documentation on Chainguard Academy. Chainguard also offers VMs and Libraries — contact us for access.
This software listing is packaged by Chainguard. The trademarks set forth in this offering are owned by their respective companies, and use of them does not imply any affiliation, sponsorship, or endorsement by such companies.
Chainguard's container images contain software packages that are direct or transitive dependencies. The following licenses were found in the "latest" tag of this image:
Apache-2.0
BSD-3-Clause
GCC-exception-3.1
GPL-2.0-only
GPL-2.0-or-later
GPL-3.0-or-later
LGPL-2.0-or-later
For a complete list of licenses, please refer to this Image's SBOM.
Software license agreementChainguard Containers are SLSA Level 3 compliant with detailed metadata and documentation about how it was built. We generate build provenance and a Software Bill of Materials (SBOM) for each release, with complete visibility into the software supply chain.
SLSA compliance at ChainguardThis image helps reduce time and effort in establishing PCI DSS 4.0 compliance with low-to-no CVEs.
PCI DSS at ChainguardA FIPS validated version of this image is available for FedRAMP compliance. STIG is included with FIPS image.