# 
# Mounts the previously uploaded videos from the NFS server and processes input video
#   - outputs to the /mnt/output/ folder, until all output files exist.
#   - k8s Job which runs to completion.  Random file process order as multiple workers.
#

apiVersion: batch/v1
kind: Job
metadata:
  name: lane-detect
spec:
  parallelism: 2
  template:
    metadata:
      name: lane-detect
    spec:
      containers:
      - name: lane-detect
        image: guydavis/lane-detect
        workingDir: /mnt
        command: [ "/usr/bin/python3", "-u", "/opt/lane_detect.py" ]
        args: [ "images/" ]
        imagePullPolicy: Always
        volumeMounts:
        - name: my-pvc-nfs
          mountPath: "/mnt"
      restartPolicy: Never
      volumes:
      - name: my-pvc-nfs
        persistentVolumeClaim:
          claimName: nfs
# 
# Mounts the previously uploaded videos from the NFS server and processes input video
#   - outputs to the /mnt/output/ folder, until all output files exist.
#   - k8s Job which runs to completion.  Random file process order as multiple workers.
#

apiVersion: batch/v1
kind: Job
metadata:
  name: lane-detect
spec:
  parallelism: 3
  template:
    metadata:
      name: lane-detect
    spec:
      containers:
      - name: lane-detect
        image: guydavis/lane-detect
        workingDir: /mnt
        command: [ "/usr/bin/python3", "-u", "/opt/lane_detect.py" ]
        args: [ "videos/" ]
        imagePullPolicy: Always
        volumeMounts:
        - name: my-pvc-nfs
          mountPath: "/mnt"
      restartPolicy: Never
      volumes:
      - name: my-pvc-nfs
        persistentVolumeClaim:
          claimName: nfs
Tweak to process videos on 3 parallel workers.
Tweak to process videos on 3 parallel workers.
