What is the Trivy Operator for Kubernetes?

IntermediateConceptTrivy
Answer

Short answer

The Trivy Operator runs inside a Kubernetes cluster and continuously scans what's running: container images for vulnerabilities, workloads for misconfigurations, RBAC for risky permissions, exposed secrets and cluster compliance (CIS, NSA). Results are stored as Kubernetes custom resources (e.g. VulnerabilityReport) and can be exported to Prometheus.

Install

helm repo add aqua https://aquasecurity.github.io/helm-charts/
helm install trivy-operator aqua/trivy-operator -n trivy-system --create-namespace

Read results

kubectl get vulnerabilityreports -A -o wide
kubectl get configauditreports -A
kubectl describe vulnerabilityreport -n shop replicaset-orders-7d9f-orders

Why run it if CI already scans?

  • New CVEs are published after deployment — the operator finds them in running workloads.
  • It catches images deployed outside the pipeline (Helm charts from vendors, manual deploys).
  • Prometheus metrics → Grafana dashboards and alerts on new critical CVEs.

What to say in the interview

"The Trivy Operator scans running workloads continuously and stores results as CRDs like VulnerabilityReport and ConfigAuditReport, with Prometheus metrics for alerting. It complements CI scanning because new CVEs appear after images are deployed."

All Security Tools questions Roadmap: Trivy — image, file system & IaC scanning

More on Trivy