Skip to content

Instantly share code, notes, and snippets.

@chgeuer
Created January 19, 2018 12:21
Show Gist options
  • Save chgeuer/19e9061dccee49c62fdab7e04dbda8d6 to your computer and use it in GitHub Desktop.
Save chgeuer/19e9061dccee49c62fdab7e04dbda8d6 to your computer and use it in GitHub Desktop.
apiVersion: batch/v1
kind: Job
metadata:
name: ls
spec:
template:
spec:
restartPolicy: Never
containers:
- name: ls
image: alpine:3.7
command: [ "touch", "/mnt/docker-was-here" ]
securityContext:
privileged: true
volumeMounts:
- mountPath: /mnt
name: tempdisk
volumes:
- name: tempdisk
hostPath:
path: /mnt
type: Directory
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment