Skip to content

Instantly share code, notes, and snippets.

@samsieber
samsieber / export-files-job.yaml
Last active June 9, 2021 03:09 — forked from atheiman/export-files-job.yaml
Generate job artifacts in an initContainer and export the files to workstation afterwards.
# Allows copying of job files to local after execution. Example copy command:
apiVersion: batch/v1
kind: Job
metadata:
name: export-files-job
spec:
template:
metadata:
labels: