view update_job.yaml @ 3:d393292f378c

move to ditto (disk still on bang)
author drewp@bigasterisk.com
date Thu, 16 Mar 2023 18:09:55 -0700
parents 781290b4a683
children a248c94091e7
line wrap: on
line source

apiVersion: batch/v1
kind: CronJob
metadata:
  name: photoprism-update
spec:
  schedule: "20 3 * * *"
  concurrencyPolicy: Replace
  jobTemplate:
    spec:
      template:
        spec:
          volumes:
            - { name: my, persistentVolumeClaim: { claimName: my } }
          containers:
          - name: update
            image: bang5:5000/photoprism_update
            volumeMounts:
              - { name: my, mountPath: /my/pic, subPath: pic }
              - { name: my, mountPath: /my/pda/note10, subPath: pda/note10 }
          restartPolicy: Never
      backoffLimit: 1