browsertrix/chart/app-templates/crawl_cron_job.yaml
Ilya Kreymer ff10124d01
charts cleanup: (#1360)
- move authsign secret to signer and make port configurable
- rename storages to more general ops-configs
- put 'storages.json' path into env var
- rename backend secret to backend-auth
- cronjobs: don't keep succeeded jobs around, triggers operator update
2023-11-08 19:24:00 -08:00

31 lines
601 B
YAML

apiVersion: batch/v1
kind: CronJob
metadata:
name: "{{ id }}"
labels:
btrix.crawlconfig: "{{ cid }}"
role: "cron-job"
spec:
concurrencyPolicy: Forbid
successfulJobsHistoryLimit: 0
failedJobsHistoryLimit: 2
schedule: "{{ schedule }}"
jobTemplate:
metadata:
labels:
btrix.crawlconfig: "{{ cid }}"
role: "scheduled-crawljob"
spec:
suspend: true
template:
spec:
restartPolicy: Never
containers:
- name: noop
image: "docker.io/tianon/true"
imagePullPolicy: IfNotPresent