Scan one namespace

Scan workloads only in the production namespace.

trivy k8s --namespace production --report summary all

tool
trivy15 commands
tags
trivysecurity

More trivy commands

  • trivy config ./my-chart

    Check Helm chart templates for insecure settings.

  • trivy image --format json -o results.json img:tag

    Save image scan results to a JSON file for scripts and other tools.

  • trivy config --severity MEDIUM,HIGH,CRITICAL ./terraform

    Find configuration mistakes in Terraform, Kubernetes and Helm code, from MEDIUM severity up.

  • trivy image --ignore-unfixed --severity HIGH,CRITICAL img:tag

    Skip vulnerabilities that have no fix yet, so you only see what you can actually patch.

  • trivy image --download-db-only

    Download the latest vulnerability database in advance, without scanning anything.

all 15 trivy commands