Skip to content

Commit

Permalink
set spark db backup schedule to hourly during the event (#42)
Browse files Browse the repository at this point in the history
* allow to change spark db backup schedule

* set production spark db backup schedule to hourly
  • Loading branch information
OriHoch authored May 11, 2018
1 parent 77c9122 commit 61d6b09
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts-external/spark/templates/sparkdb-backup-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ kind: CronJob
metadata:
name: sparkdb-backup
spec:
schedule: "@daily"
schedule: {{ .Values.dbBackupSchedule | default "@daily" | quote }}
concurrencyPolicy: Forbid
successfulJobsHistoryLimit: 0
failedJobsHistoryLimit: 1
Expand Down
1 change: 1 addition & 0 deletions environments/production/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ spark:
appSecretName: sparkdb-app
enableDbInit: false
dbBackupJob: true
dbBackupSchedule: "@hourly"
# persistent storage was setup using environments/staging/persistent_storage_migration.sh
persistentStorageName: sparkdb

Expand Down

0 comments on commit 61d6b09

Please sign in to comment.