Skip to content

Commit

Permalink
Add cronjob template
Browse files Browse the repository at this point in the history
  • Loading branch information
zwolf committed Sep 20, 2023
1 parent 11b14c1 commit 3fa2ea0
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions kubernetes/cron_sync.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 3fa2ea0

Please sign in to comment.