Open Source
All templates and components

Cluster component

Trivy Operator

Scans running images and settings for known vulnerabilities.

Memory when idle
about 140 MiB
CI measures it once the app is ready and before any traffic. Leave room for more.
Tested on
x86 and ARM servers
Installed by default
Optional

Introduction

Trivy Operator scans the images of running workloads for known vulnerabilities. It also audits workload settings and looks for exposed secrets. It writes the results as reports in the workload’s own namespace: VulnerabilityReport, ConfigAuditReport and ExposedSecretReport.

Install it when you want a list of vulnerable images in the cluster. The scan Jobs use noticeable CPU and memory, so the component is optional. It lists only vulnerabilities that have a fix. On a single node it scans one image at a time, reports MEDIUM, HIGH and CRITICAL findings, and skips the RBAC review.

It reads workloads, Pods, Services, Ingresses and RBAC objects in every namespace, runs scan Jobs and writes the reports. It does not read every Secret. It leaves infrastructure and compliance scans and SBOM reports off.

Use it

Trivy Operator has no Zeabur OSS screen. Read the reports with kubectl once the first scans finish.

kubectl get vulnerabilityreports -A -o wide
kubectl get configauditreports -A -o wide

See the Trivy Operator documentation for the report fields and settings.

Remove it

Removal deletes the operator. The CRDs stay, and so do the reports already written. Delete them yourself if you no longer want them. See Remove components.

Troubleshooting

No reports appear

Read the operator log and look for scan Jobs that fail:

kubectl -n trivy-system logs deploy/trivy-operator
kubectl -n trivy-system get jobs,pods

Technical details

This release

Provides
vulnerability-scanning
Licence
Apache-2.0

Tested in CI

CI installs these exact files on a new cluster, waits until they are ready, then records the idle memory.

DistributionPlatformKubernetesPassedIdle memory
k3slinux/amd64v1.37.2124 MiB
k3slinux/arm64v1.37.2123 MiB
kindlinux/amd64v1.37.0137 MiB
kindlinux/arm64v1.37.0127 MiB
kubesololinux/amd64v1.36.6128 MiB
kubesololinux/arm64v1.36.6121 MiB
rke2linux/amd64v1.37.2139 MiB
rke2linux/arm64v1.37.2142 MiB

Security

Reads workloads cluster-wide, runs scan Jobs and writes reports next to workloads.

What it installs

  • trivy-operator 0.38.1