apiVersion: batch/v1
kind: Job
metadata:
  labels:
    job-name: dask-job
  name: dask-job
  namespace: default
spec:
  backoffLimit: 6
  completions: 1
  parallelism: 1
  template:
    spec:
      serviceAccountName: dask-admin
      containers:
      - command: ["python", "example.py"]
        image: dask-test
        imagePullPolicy: Never
        name: dask-job
        resources: {}
        terminationMessagePath: /dev/termination-log
        terminationMessagePolicy: File
      dnsPolicy: ClusterFirst
      restartPolicy: Never
      schedulerName: default-scheduler
      securityContext: {}
#      terminationGracePeriodSeconds: 30
