Skip to content

william89731/trivy-operator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

scan2

platform os script license donate

Trivy Operator

Trivy operator is an security tool which continuously scans your Kubernetes cluster

step 1

  • Install trivy operator:
kubectl apply -f https://raw.githubusercontent.com/aquasecurity/trivy-operator/v0.10.1/deploy/static/trivy-operator.yaml
  • check the operator is running:
kubectl get deployment -n trivy-system

image

step 2

  • Clone this repo:
cd ~ && git clone https://github.com/william89731/trivy-operator && cd trivy-operator

image

  • set alias:

alias trivy-operator='bash ~/trivy-operator/operator.sh ~/trivy-operator/namespace.txt'

  • launch script:
trivy-operator

script

see result in report.txt

image

  • for more info:
kubectl describe vuln <REPLICASET> -n <NAMESPACE>

or

kubectl describe configaudit <REPLICASET> -n <NAMESPACE>

image