apiVersion: batch/v1 kind: Job metadata: name: nextflow-job namespace: nextflow-ns spec: template: spec: serviceAccountName: nextflow-sa containers: - name: nextflow image: nextflow/nextflow:22.10.6 command: - nextflow - run - /workspace/main.nf - -config - /workspace/nextflow.config env: - name: NXF_K8S_IMAGE value: ubuntu:22.04 - name: NXF_DEBUG value: "1" volumeMounts: - name: workdir mountPath: /work - name: pipeline-code mountPath: /workspace workingDir: /work restartPolicy: Never volumes: - name: workdir persistentVolumeClaim: claimName: nextflow-workdir - name: pipeline-code configMap: name: nextflow-code backoffLimit: 0