Scan specific namespace

Scan workloads only in a specific 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 security misconfigurations

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

    Machine-readable vulnerability scan results

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

    Find misconfigurations in Terraform/Kubernetes/Helm code

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

    Skip vulnerabilities that have no fix available yet

  • trivy image --download-db-only

    Pre-download the latest vulnerability database

all 15 trivy commands