mirror of
https://github.com/aquasecurity/kube-bench.git
synced 2025-03-06 10:06:07 +00:00
Add command with ocp benchmark selected
This commit is contained in:
parent
040c137c9d
commit
4ba6a0cfda
10
job-ocp.yaml
10
job-ocp.yaml
@ -89,7 +89,15 @@ spec:
|
|||||||
serviceAccountName: kube-bench-sa
|
serviceAccountName: kube-bench-sa
|
||||||
automountServiceAccountToken: true
|
automountServiceAccountToken: true
|
||||||
containers:
|
containers:
|
||||||
- command: ["kube-bench"]
|
- command:
|
||||||
|
[
|
||||||
|
"kube-bench",
|
||||||
|
"run",
|
||||||
|
"--targets",
|
||||||
|
"master,controlplane,node,etcd,policies",
|
||||||
|
"--benchmark",
|
||||||
|
"rh-1.6",
|
||||||
|
]
|
||||||
image: docker.io/aquasec/kube-bench:latest
|
image: docker.io/aquasec/kube-bench:latest
|
||||||
name: kube-bench
|
name: kube-bench
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
|
Loading…
Reference in New Issue
Block a user