-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
job-tkgi.yaml
54 lines (54 loc) · 1.43 KB
/
job-tkgi.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
---
apiVersion: batch/v1
kind: Job
metadata:
name: kube-bench
spec:
template:
spec:
hostPID: true
containers:
- name: kube-bench
image: docker.io/aquasec/kube-bench:latest
command:
[
"kube-bench",
"run",
"--targets",
"node,policies",
"--benchmark",
"tkgi-1.2.53",
]
volumeMounts:
- name: var-vcap-jobs
mountPath: /var/vcap/jobs
readOnly: true
- name: var-vcap-packages
mountPath: /var/vcap/packages
readOnly: true
- name: var-vcap-store-etcd
mountPath: /var/vcap/store/etcd
readOnly: true
- name: var-vcap-sys
mountPath: /var/vcap/sys
readOnly: true
- name: etc-kubernetes
mountPath: /etc/kubernetes
readOnly: true
restartPolicy: Never
volumes:
- name: var-vcap-jobs
hostPath:
path: "/var/vcap/jobs"
- name: var-vcap-packages
hostPath:
path: "/var/vcap/packages"
- name: var-vcap-store-etcd
hostPath:
path: "/var/vcap/store/etcd"
- name: var-vcap-sys
hostPath:
path: "/var/vcap/sys"
- name: etc-kubernetes
hostPath:
path: "/etc/kubernetes"