Browse Source

Backups need to be in velero namespace to work

master
Fábio Kaiser Rauber 4 years ago
parent
commit
1cb9bb6617
  1. 1
      charts/portalmodelo/v0.5.0/templates/velero-schedule-monthly.yaml
  2. 1
      charts/portalmodelo/v0.5.0/templates/velero-schedule-weekdays.yaml
  3. 1
      charts/portalmodelo/v0.5.0/templates/velero-schedule-weekly.yaml
  4. 1
      charts/portalmodelo/v0.5.0/values.yaml

1
charts/portalmodelo/v0.5.0/templates/velero-schedule-monthly.yaml

@ -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 * *

1
charts/portalmodelo/v0.5.0/templates/velero-schedule-weekdays.yaml

@ -3,6 +3,7 @@ apiVersion: velero.io/v1
kind: Schedule
metadata:
name: {{ include "portalmodelo.fullname" . }}-weekdays
namespace: {{ .Values.velero.namespace }}
spec:
# generate a random backup time between 1 and 5 AM on weekdays
schedule: {{ mod (randNumeric 2) 60 }} {{ mod (randNumeric 1) 6 }} * * 1-5

1
charts/portalmodelo/v0.5.0/templates/velero-schedule-weekly.yaml

@ -3,6 +3,7 @@ apiVersion: velero.io/v1
kind: Schedule
metadata:
name: {{ include "portalmodelo.fullname" . }}-weekly
namespace: {{ .Values.velero.namespace }}
spec:
# generate a random backup time between 1 and 5 AM on sunday
schedule: {{ mod (randNumeric 2) 60 }} {{ mod (randNumeric 1) 6 }} * * 0

1
charts/portalmodelo/v0.5.0/values.yaml

@ -21,6 +21,7 @@ persistence:
size: 1Gi
velero:
namespace: velero
backup:
enabled: false

Loading…
Cancel
Save