Skip to content

Commit

Permalink
Set benji schedule in dev
Browse files Browse the repository at this point in the history
Issue #274
  • Loading branch information
allenporter committed Aug 24, 2021
1 parent 2ef7763 commit f286446
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 17 deletions.
17 changes: 0 additions & 17 deletions infrastructure/base/benji/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,23 +72,6 @@ spec:
mountPath: /etc/ceph/keyring
subPath: keyring
readOnly: true
crontab:
- name: backup-all
schedule: "00 03 * * *"
command:
- benji-backup-pvc
- name: enforce
schedule: "00 04 * * *"
command:
- benji-command
- enforce
- latest3,hours24,days7,weeks4,months12,years3
- 'labels["benji-backup.me/instance"] == "benji-k8s"'
- name: cleanup
schedule: "00 05 * * *"
command:
- benji-command
- cleanup
postgresql:
enabled: true
postgresqlUsername: benji
Expand Down
26 changes: 26 additions & 0 deletions infrastructure/dev/benji-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,29 @@ spec:
external-dns.alpha.kubernetes.io/hostname: benji.dev.mrv.thebends.org.
external-dns.alpha.kubernetes.io/target: prx02.dev.mrv.thebends.org.
host: benji.dev.mrv.thebends.org
benji:
crontab:
- name: backup-home-assistant
schedule: "00 10 * * *"
command:
- benji-backup-pvc
- --namespace
- home-assistant
- name: backup-monitoring
schedule: "00 10 * * *"
command:
- benji-backup-pvc
- --namespace
- monitoring
- name: enforce
schedule: "00 11 * * *"
command:
- benji-command
- enforce
- days14
- 'labels["benji-backup.me/instance"] == "benji-k8s"'
- name: cleanup
schedule: "00 12 * * *"
command:
- benji-command
- cleanup

0 comments on commit f286446

Please sign in to comment.