Skip to content

aquasecurity/trivy-plugin-kubectl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

trivy-plugin-kubectl

A Trivy plugin that scans the images of a kubernetes resource

Install

$ trivy plugin install github.com/aquasecurity/trivy-plugin-kubectl
$ trivy kubectl -h
Usage: trivy kubectl [-h,--help] TYPE NAME [TRIVY OPTION]
 A Trivy plugin that scans the images of a kubernetes resource.

Options:
  -h, --help    Show usage.

Examples:
  # Scan a Pod
  trivy kubectl pod mypod

  # Scan a Deployment
  trivy kubectl deployment mydeployment -n mynamespace

  # Scan a Job and filter by severity
  trivy kubectl job myjob -n mynamespace -- --severity CRITICAL

Usage

Trivy's options need to be passed after --.

# Scan a Pod
$ trivy kubectl pod mypod

# Scan a Deployment
$ trivy kubectl deployment mydeployment -n mynamespace

# Scan a Job and filter by severity
$ trivy kubectl job myjob -n mynamespace -- --severity CRITICAL

About

A Trivy plugin that scans the images of a kubernetes resource

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages