Created
June 27, 2018 15:46
-
-
Save jgsqware/2fb4ac702727b9c8095fa60c3c297d43 to your computer and use it in GitHub Desktop.
Docker Bench Pod
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: Pod | |
metadata: | |
name: docker-bench | |
labels: | |
app: docker-bench | |
spec: | |
hostPID: true | |
nodeSelector: | |
role: master | |
tolerations: | |
- key: node-role.kubernetes.io/master | |
operator: Exists | |
effect: NoSchedule | |
restartPolicy: Never | |
containers: | |
- name: docker-bench | |
image: docker/docker-bench-security | |
volumeMounts: | |
- mountPath: /var/run/docker.sock | |
name: docker-socket | |
- mountPath: /var/lib | |
name: var-lib | |
- mountPath: /usr/lib/systemd | |
name: usr-lib-systemd | |
- mountPath: /etc | |
name: etc | |
volumes: | |
- name: docker-socket | |
hostPath: | |
path: /var/run/docker.sock | |
- name: var-lib | |
hostPath: | |
path: /var/lib | |
- name: usr-lib-systemd | |
hostPath: | |
path: /usr/lib/systemd | |
- name: etc | |
hostPath: | |
path: /etc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment