theshire/.taskfiles/volsync/resources/replicationdestination.tmpl.yaml

32 lines
1,008 B
YAML
Raw Permalink Normal View History

2024-01-11 15:03:54 -06:00
---
apiVersion: volsync.backube/v1alpha1
kind: ReplicationDestination
metadata:
2024-07-08 10:53:12 -05:00
name: ${job}
namespace: ${ns}
2024-01-11 15:03:54 -06:00
spec:
trigger:
manual: restore-once
restic:
2024-07-08 10:53:12 -05:00
repository: ${app}-volsync-secret
destinationPVC: ${claim}
2024-01-11 15:03:54 -06:00
copyMethod: Direct
2024-07-09 12:43:00 -05:00
storageClassName: openebs-hostpath
2024-07-08 10:53:12 -05:00
# storageClassName: ceph-filesystem
# accessModes: ["ReadWriteMany"]
2024-01-11 15:03:54 -06:00
# IMPORTANT NOTE:
# Set to the last X number of snapshots to restore from
previous: ${previous}
# OR;
# IMPORTANT NOTE:
# On bootstrap set `restoreAsOf` to the time the old cluster was destroyed.
# This will essentially prevent volsync from trying to restore a backup
# from a application that started with default data in the PVC.
# Do not restore snapshots made after the following RFC3339 Timestamp.
# date --rfc-3339=seconds (--utc)
# restoreAsOf: "2022-12-10T16:00:00-05:00"
2024-07-08 10:53:12 -05:00
moverSecurityContext:
runAsUser: ${puid}
runAsGroup: ${pgid}
fsGroup: ${pgid}