github.com/jlmeeker/kismatic@v1.10.1-0.20180612190640-57f9005a1f1a/integration-tests/test-resources/storage/writer.yaml (about) 1 apiVersion: batch/v1 2 kind: Job 3 metadata: 4 name: kismatic-writer 5 spec: 6 completions: 10 7 parallelism: 10 # Multiple writers at the same time 8 activeDeadlineSeconds: 60 # Wait up to a minute for this job to complete 9 template: 10 metadata: 11 name: kismatic-writer 12 spec: 13 containers: 14 - name: writer 15 image: busybox 16 command: ["/bin/sh", "-c"] 17 args: 18 - "echo kismatic-test > /mnt/$(POD_NAME)" 19 volumeMounts: 20 - name: test-volume 21 mountPath: "/mnt" 22 env: 23 - name: POD_NAME 24 valueFrom: 25 fieldRef: 26 fieldPath: metadata.name 27 volumes: 28 - name: test-volume 29 persistentVolumeClaim: 30 claimName: kismatic-integration-claim 31 restartPolicy: Never