Mercurial > code > home > repos > photoprism
annotate 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 |
rev | line source |
---|---|
2
781290b4a683
nightly updater. performance config attempts & notes
drewp@bigasterisk.com
parents:
diff
changeset
|
1 apiVersion: batch/v1 |
781290b4a683
nightly updater. performance config attempts & notes
drewp@bigasterisk.com
parents:
diff
changeset
|
2 kind: CronJob |
781290b4a683
nightly updater. performance config attempts & notes
drewp@bigasterisk.com
parents:
diff
changeset
|
3 metadata: |
781290b4a683
nightly updater. performance config attempts & notes
drewp@bigasterisk.com
parents:
diff
changeset
|
4 name: photoprism-update |
781290b4a683
nightly updater. performance config attempts & notes
drewp@bigasterisk.com
parents:
diff
changeset
|
5 spec: |
4 | 6 # run one now with this: |
7 # k delete job/updatetest ; k create job --from=cronjob/photoprism-update updatetest | |
2
781290b4a683
nightly updater. performance config attempts & notes
drewp@bigasterisk.com
parents:
diff
changeset
|
8 schedule: "20 3 * * *" |
781290b4a683
nightly updater. performance config attempts & notes
drewp@bigasterisk.com
parents:
diff
changeset
|
9 concurrencyPolicy: Replace |
781290b4a683
nightly updater. performance config attempts & notes
drewp@bigasterisk.com
parents:
diff
changeset
|
10 jobTemplate: |
781290b4a683
nightly updater. performance config attempts & notes
drewp@bigasterisk.com
parents:
diff
changeset
|
11 spec: |
781290b4a683
nightly updater. performance config attempts & notes
drewp@bigasterisk.com
parents:
diff
changeset
|
12 template: |
781290b4a683
nightly updater. performance config attempts & notes
drewp@bigasterisk.com
parents:
diff
changeset
|
13 spec: |
781290b4a683
nightly updater. performance config attempts & notes
drewp@bigasterisk.com
parents:
diff
changeset
|
14 volumes: |
781290b4a683
nightly updater. performance config attempts & notes
drewp@bigasterisk.com
parents:
diff
changeset
|
15 - { name: my, persistentVolumeClaim: { claimName: my } } |
781290b4a683
nightly updater. performance config attempts & notes
drewp@bigasterisk.com
parents:
diff
changeset
|
16 containers: |
6 | 17 - name: update |
18 image: bang5:5000/photoprism_update | |
19 volumeMounts: | |
20 #- { name: my, mountPath: /my/pic, subPath: pic } | |
21 #- { name: my, mountPath: /my/pda/note10, subPath: pda/note10 } | |
22 - { name: my, mountPath: /my } | |
23 | |
4 | 24 affinity: |
25 nodeAffinity: | |
26 requiredDuringSchedulingIgnoredDuringExecution: | |
27 nodeSelectorTerms: | |
28 - matchExpressions: | |
29 - key: "kubernetes.io/hostname" | |
30 operator: In | |
6 | 31 values: ["ditto"] # anything with nfs, but bang is fastest right now |
2
781290b4a683
nightly updater. performance config attempts & notes
drewp@bigasterisk.com
parents:
diff
changeset
|
32 restartPolicy: Never |
781290b4a683
nightly updater. performance config attempts & notes
drewp@bigasterisk.com
parents:
diff
changeset
|
33 backoffLimit: 1 |