Mercurial > code > home > repos > photoprism
view update_job.yaml @ 8:55a0dc78fc3a default tip
user fix
author | drewp@bigasterisk.com |
---|---|
date | Sat, 25 Mar 2023 15:24:14 -0700 |
parents | 07aa4c3cddc4 |
children |
line wrap: on
line source
apiVersion: batch/v1 kind: CronJob metadata: name: photoprism-update spec: # run one now with this: # k delete job/updatetest ; k create job --from=cronjob/photoprism-update updatetest 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 } - { name: my, mountPath: /my } affinity: nodeAffinity: requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: "kubernetes.io/hostname" operator: In values: ["ditto"] # anything with nfs, but bang is fastest right now restartPolicy: Never backoffLimit: 1