mirror of
https://github.com/aquasecurity/kube-bench.git
synced 2024-11-26 18:08:15 +00:00
96f13701ce
Signed-off-by: chenk <hen.keinan@gmail.com>
86 lines
2.4 KiB
YAML
86 lines
2.4 KiB
YAML
---
|
|
apiVersion: batch/v1
|
|
kind: Job
|
|
metadata:
|
|
name: kube-bench
|
|
spec:
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: kube-bench
|
|
spec:
|
|
containers:
|
|
- command: ["kube-bench"]
|
|
image: docker.io/aquasec/kube-bench:v0.6.18
|
|
name: kube-bench
|
|
volumeMounts:
|
|
- mountPath: /var/lib/etcd
|
|
name: var-lib-etcd
|
|
readOnly: true
|
|
- mountPath: /var/lib/kubelet
|
|
name: var-lib-kubelet
|
|
readOnly: true
|
|
- mountPath: /var/lib/kube-scheduler
|
|
name: var-lib-kube-scheduler
|
|
readOnly: true
|
|
- mountPath: /var/lib/kube-controller-manager
|
|
name: var-lib-kube-controller-manager
|
|
readOnly: true
|
|
- mountPath: /etc/systemd
|
|
name: etc-systemd
|
|
readOnly: true
|
|
- mountPath: /lib/systemd/
|
|
name: lib-systemd
|
|
readOnly: true
|
|
- mountPath: /srv/kubernetes/
|
|
name: srv-kubernetes
|
|
readOnly: true
|
|
- mountPath: /etc/kubernetes
|
|
name: etc-kubernetes
|
|
readOnly: true
|
|
- mountPath: /usr/local/mount-from-host/bin
|
|
name: usr-bin
|
|
readOnly: true
|
|
- mountPath: /etc/cni/net.d/
|
|
name: etc-cni-netd
|
|
readOnly: true
|
|
- mountPath: /opt/cni/bin/
|
|
name: opt-cni-bin
|
|
readOnly: true
|
|
hostPID: true
|
|
restartPolicy: Never
|
|
volumes:
|
|
- 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
|