@ -3,6 +3,7 @@ apiVersion: velero.io/v1
kind: Schedule
metadata:
name: {{ include "portalmodelo.fullname" . }}-monthly
namespace: {{ .Values.velero.namespace }}
spec:
# generate a random backup time between 1 and 5 AM on first day of every month
schedule: {{ mod (randNumeric 2) 60 }} {{ mod (randNumeric 1) 6 }} 1 * *
name: {{ include "portalmodelo.fullname" . }}-weekdays
# generate a random backup time between 1 and 5 AM on weekdays
schedule: {{ mod (randNumeric 2) 60 }} {{ mod (randNumeric 1) 6 }} * * 1-5
name: {{ include "portalmodelo.fullname" . }}-weekly
# generate a random backup time between 1 and 5 AM on sunday
schedule: {{ mod (randNumeric 2) 60 }} {{ mod (randNumeric 1) 6 }} * * 0
@ -21,6 +21,7 @@ persistence:
size: 1Gi
velero:
namespace: velero
backup:
enabled: false