Skip to content

Instantly share code, notes, and snippets.

@jgsqware
Created June 27, 2018 15:46
Show Gist options
  • Save jgsqware/2fb4ac702727b9c8095fa60c3c297d43 to your computer and use it in GitHub Desktop.
Save jgsqware/2fb4ac702727b9c8095fa60c3c297d43 to your computer and use it in GitHub Desktop.
Docker Bench Pod
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