From 3fa2ea09b9e5d9d51e5eaf5e27a622a13c2a9ae1 Mon Sep 17 00:00:00 2001 From: Zach Wolfenbarger Date: Tue, 19 Sep 2023 21:06:55 -0500 Subject: [PATCH] Add cronjob template --- kubernetes/cron_sync.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 kubernetes/cron_sync.yml diff --git a/kubernetes/cron_sync.yml b/kubernetes/cron_sync.yml new file mode 100644 index 0000000..4311f37 --- /dev/null +++ b/kubernetes/cron_sync.yml @@ -0,0 +1,21 @@ +apiVersion: batch/v1 +kind: CronJob +metadata: + name: listmonk-cron-sync-job +spec: + schedule: "0 3 * * *" + jobTemplate: + spec: + template: + metadata: + name: listmonk-sync + spec: + containers: + - name: listmonk-sync + image: ghcr.io/zooniverse/listmonk-sync + envFrom: + - secretRef: + name: listmonk-sync-env-vars + command: ['ruby', 'sync.rb'] + restartPolicy: Never + backoffLimit: 2