Mercurial > code > home > repos > photoprism
annotate update_job.yaml @ 4:a248c94091e7
get updater working BAMN
author | drewp@bigasterisk.com |
---|---|
date | Thu, 16 Mar 2023 18:11:02 -0700 |
parents | 781290b4a683 |
children | 4bf137b25259 |
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: |
4 | 14 serviceAccountName: photoprism |
2
781290b4a683
nightly updater. performance config attempts & notes
drewp@bigasterisk.com
parents:
diff
changeset
|
15 volumes: |
781290b4a683
nightly updater. performance config attempts & notes
drewp@bigasterisk.com
parents:
diff
changeset
|
16 - { name: my, persistentVolumeClaim: { claimName: my } } |
781290b4a683
nightly updater. performance config attempts & notes
drewp@bigasterisk.com
parents:
diff
changeset
|
17 containers: |
781290b4a683
nightly updater. performance config attempts & notes
drewp@bigasterisk.com
parents:
diff
changeset
|
18 - name: update |
781290b4a683
nightly updater. performance config attempts & notes
drewp@bigasterisk.com
parents:
diff
changeset
|
19 image: bang5:5000/photoprism_update |
781290b4a683
nightly updater. performance config attempts & notes
drewp@bigasterisk.com
parents:
diff
changeset
|
20 volumeMounts: |
4 | 21 #- { name: my, mountPath: /my/pic, subPath: pic } |
22 #- { name: my, mountPath: /my/pda/note10, subPath: pda/note10 } | |
23 - { name: my, mountPath: /my } | |
24 | |
25 affinity: | |
26 nodeAffinity: | |
27 requiredDuringSchedulingIgnoredDuringExecution: | |
28 nodeSelectorTerms: | |
29 - matchExpressions: | |
30 - key: "kubernetes.io/hostname" | |
31 operator: In | |
32 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
|
33 restartPolicy: Never |
781290b4a683
nightly updater. performance config attempts & notes
drewp@bigasterisk.com
parents:
diff
changeset
|
34 backoffLimit: 1 |