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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
a248c94091e7 get updater working BAMN
drewp@bigasterisk.com
parents: 2
diff changeset
6 # run one now with this:
a248c94091e7 get updater working BAMN
drewp@bigasterisk.com
parents: 2
diff changeset
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
4bf137b25259 reformat
drewp@bigasterisk.com
parents: 4
diff changeset
17 - name: update
4bf137b25259 reformat
drewp@bigasterisk.com
parents: 4
diff changeset
18 image: bang5:5000/photoprism_update
4bf137b25259 reformat
drewp@bigasterisk.com
parents: 4
diff changeset
19 volumeMounts:
4bf137b25259 reformat
drewp@bigasterisk.com
parents: 4
diff changeset
20 #- { name: my, mountPath: /my/pic, subPath: pic }
4bf137b25259 reformat
drewp@bigasterisk.com
parents: 4
diff changeset
21 #- { name: my, mountPath: /my/pda/note10, subPath: pda/note10 }
4bf137b25259 reformat
drewp@bigasterisk.com
parents: 4
diff changeset
22 - { name: my, mountPath: /my }
4bf137b25259 reformat
drewp@bigasterisk.com
parents: 4
diff changeset
23
4
a248c94091e7 get updater working BAMN
drewp@bigasterisk.com
parents: 2
diff changeset
24 affinity:
a248c94091e7 get updater working BAMN
drewp@bigasterisk.com
parents: 2
diff changeset
25 nodeAffinity:
a248c94091e7 get updater working BAMN
drewp@bigasterisk.com
parents: 2
diff changeset
26 requiredDuringSchedulingIgnoredDuringExecution:
a248c94091e7 get updater working BAMN
drewp@bigasterisk.com
parents: 2
diff changeset
27 nodeSelectorTerms:
a248c94091e7 get updater working BAMN
drewp@bigasterisk.com
parents: 2
diff changeset
28 - matchExpressions:
a248c94091e7 get updater working BAMN
drewp@bigasterisk.com
parents: 2
diff changeset
29 - key: "kubernetes.io/hostname"
a248c94091e7 get updater working BAMN
drewp@bigasterisk.com
parents: 2
diff changeset
30 operator: In
6
4bf137b25259 reformat
drewp@bigasterisk.com
parents: 4
diff changeset
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