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
- Homepage
- aquasecurity.github.io
Tested in CI
CI installs these exact files on a new cluster, waits until they are ready, then records the idle memory.
| Distribution | Platform | Kubernetes | Passed | Idle memory |
|---|---|---|---|---|
| k3s | linux/amd64 | v1.37.2 | 124 MiB | |
| k3s | linux/arm64 | v1.37.2 | 123 MiB | |
| kind | linux/amd64 | v1.37.0 | 137 MiB | |
| kind | linux/arm64 | v1.37.0 | 127 MiB | |
| kubesolo | linux/amd64 | v1.36.6 | 128 MiB | |
| kubesolo | linux/arm64 | v1.36.6 | 121 MiB | |
| rke2 | linux/amd64 | v1.37.2 | 139 MiB | |
| rke2 | linux/arm64 | v1.37.2 | 142 MiB |
Security
Reads workloads cluster-wide, runs scan Jobs and writes reports next to workloads.
What it installs
- trivy-operator 0.38.1