2020-01-06 09:18:25 +00:00
|
|
|
---
|
2019-03-07 17:02:43 +00:00
|
|
|
apiVersion: batch/v1
|
|
|
|
kind: Job
|
|
|
|
metadata:
|
|
|
|
name: kube-bench
|
|
|
|
spec:
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: kube-bench
|
|
|
|
spec:
|
|
|
|
containers:
|
2023-07-24 08:01:43 +00:00
|
|
|
- command: ["kube-bench"]
|
2023-10-23 07:03:22 +00:00
|
|
|
image: docker.io/aquasec/kube-bench:v0.6.19
|
2023-07-24 08:01:43 +00:00
|
|
|
name: kube-bench
|
2020-01-06 09:18:25 +00:00
|
|
|
volumeMounts:
|
2023-07-24 08:01:43 +00:00
|
|
|
- mountPath: /var/lib/etcd
|
|
|
|
name: var-lib-etcd
|
2020-01-28 15:45:31 +00:00
|
|
|
readOnly: true
|
2023-07-24 08:01:43 +00:00
|
|
|
- mountPath: /var/lib/kubelet
|
|
|
|
name: var-lib-kubelet
|
2020-01-28 15:45:31 +00:00
|
|
|
readOnly: true
|
2023-07-24 08:01:43 +00:00
|
|
|
- mountPath: /var/lib/kube-scheduler
|
|
|
|
name: var-lib-kube-scheduler
|
2021-04-08 14:02:27 +00:00
|
|
|
readOnly: true
|
2023-07-24 08:01:43 +00:00
|
|
|
- mountPath: /var/lib/kube-controller-manager
|
|
|
|
name: var-lib-kube-controller-manager
|
2021-04-08 14:02:27 +00:00
|
|
|
readOnly: true
|
2023-07-24 08:01:43 +00:00
|
|
|
- mountPath: /etc/systemd
|
|
|
|
name: etc-systemd
|
2020-01-28 15:45:31 +00:00
|
|
|
readOnly: true
|
2023-07-24 08:01:43 +00:00
|
|
|
- mountPath: /lib/systemd/
|
|
|
|
name: lib-systemd
|
2021-04-08 14:02:27 +00:00
|
|
|
readOnly: true
|
2023-07-24 08:01:43 +00:00
|
|
|
- mountPath: /srv/kubernetes/
|
|
|
|
name: srv-kubernetes
|
2021-04-08 14:02:27 +00:00
|
|
|
readOnly: true
|
2023-07-24 08:01:43 +00:00
|
|
|
- mountPath: /etc/kubernetes
|
|
|
|
name: etc-kubernetes
|
2020-01-28 15:45:31 +00:00
|
|
|
readOnly: true
|
2023-07-24 08:01:43 +00:00
|
|
|
- mountPath: /usr/local/mount-from-host/bin
|
|
|
|
name: usr-bin
|
2020-01-28 15:45:31 +00:00
|
|
|
readOnly: true
|
2023-07-24 08:01:43 +00:00
|
|
|
- mountPath: /etc/cni/net.d/
|
|
|
|
name: etc-cni-netd
|
2021-04-08 14:02:27 +00:00
|
|
|
readOnly: true
|
2023-07-24 08:01:43 +00:00
|
|
|
- mountPath: /opt/cni/bin/
|
|
|
|
name: opt-cni-bin
|
2021-04-08 14:02:27 +00:00
|
|
|
readOnly: true
|
2023-07-24 08:01:43 +00:00
|
|
|
hostPID: true
|
2020-01-06 09:18:25 +00:00
|
|
|
restartPolicy: Never
|
|
|
|
volumes:
|
2023-07-24 08:01:43 +00:00
|
|
|
- hostPath:
|
|
|
|
path: /var/lib/etcd
|
|
|
|
name: var-lib-etcd
|
|
|
|
- hostPath:
|
|
|
|
path: /var/lib/kubelet
|
|
|
|
name: var-lib-kubelet
|
|
|
|
- hostPath:
|
|
|
|
path: /var/lib/kube-scheduler
|
|
|
|
name: var-lib-kube-scheduler
|
|
|
|
- hostPath:
|
|
|
|
path: /var/lib/kube-controller-manager
|
|
|
|
name: var-lib-kube-controller-manager
|
|
|
|
- hostPath:
|
|
|
|
path: /etc/systemd
|
|
|
|
name: etc-systemd
|
|
|
|
- hostPath:
|
|
|
|
path: /lib/systemd
|
|
|
|
name: lib-systemd
|
|
|
|
- hostPath:
|
|
|
|
path: /srv/kubernetes
|
|
|
|
name: srv-kubernetes
|
|
|
|
- hostPath:
|
|
|
|
path: /etc/kubernetes
|
|
|
|
name: etc-kubernetes
|
|
|
|
- hostPath:
|
|
|
|
path: /usr/bin
|
|
|
|
name: usr-bin
|
|
|
|
- hostPath:
|
|
|
|
path: /etc/cni/net.d/
|
|
|
|
name: etc-cni-netd
|
|
|
|
- hostPath:
|
|
|
|
path: /opt/cni/bin/
|
|
|
|
name: opt-cni-bin
|