
Trivy for Kubernetes
Kubernetes के लिए एक सरल और व्यापक भेद्यता स्कैनर
KubeTrivy Kubernetes के लिए trivy का विस्तार है।
KubeTrivy Kubernetes के लिए एक सरल और व्यापक भेद्यता स्कैनर है।
KubeTrivy OS पैकेजों (Alpine, RHEL, CentOS, आदि) और एप्लिकेशन निर्भरताओं (Bundler, Composer, npm, yarn आदि) की भेद्यताओं का पता लगाता है।
KubeTrivy उपयोग करना आसान है। बस बाइनरी इंस्टॉल करें और आप स्कैन करने के लिए तैयार हैं। स्कैनिंग के लिए आपको बस Kubernetes पर कंटेनर का इमेज नाम निर्दिष्ट करना है।
Trivy के बारे में देखें।
kubectl get vulnerability या kubetrivy get ${resourceName}$ brew tap masahiro331/kube-tirvy
$ brew install kube-trivy
$ kubetrivy -h
$ go get -u github.com/masahiro331/kube-trivy
$ kubetrivy -h
$ cat << EOS > crd.yaml
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
name: vulnerabilities.kubetrivy.io
spec:
group: kubetrivy.io
version: v1
names:
kind: Vulnerability
plural: vulnerabilities
scope: Namespaced
additionalPrinterColumns:
- name: UNKNOWN
type: integer
description: The total of vulnerabilities launched by the kubetrivy
JSONPath: .spec.statistics.UNKNOWN
- name: LOW
type: integer
description: The total of vulnerabilities launched by the kubetrivy
JSONPath: .spec.statistics.LOW
- name: MEDIUM
type: integer
description: The total of vulnerabilities launched by the kubetrivy
JSONPath: .spec.statistics.MEDIUM
- name: HIGH
type: integer
description: The total of vulnerabilities launched by the kubetrivy
JSONPath: .spec.statistics.HIGH
- name: CRITICAL
type: integer
description: The total of vulnerabilities launched by the kubetrivy
JSONPath: .spec.statistics.CRITICAL
EOS
$ kubectl apply -f crd.yaml
$ kubectl get vulnerability
$ kubetrivy -n default scan
$ kubetrivy -n default scan
$ kubectl get vulnerability -n default
$ kubetrivy -n default get ${resourceName}