Created
January 19, 2018 12:21
-
-
Save chgeuer/19e9061dccee49c62fdab7e04dbda8d6 to your computer and use it in GitHub Desktop.
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: 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