2024-10-13 22:05:49 +00:00
|
|
|
# yaml-language-server: $schema=https://kubernetes-schemas.pages.dev/volsync.backube/replicationsource_v1alpha1.json
|
|
|
|
apiVersion: volsync.backube/v1alpha1
|
|
|
|
kind: ReplicationSource
|
|
|
|
metadata:
|
|
|
|
name: "${APP}-b2"
|
|
|
|
spec:
|
|
|
|
sourcePVC: "${APP}"
|
|
|
|
trigger:
|
|
|
|
schedule: "0 0 * * *"
|
|
|
|
restic:
|
|
|
|
copyMethod: "${VOLSYNC_COPYMETHOD:-Snapshot}"
|
|
|
|
pruneIntervalDays: 7
|
2024-10-13 22:53:00 +00:00
|
|
|
repository: "${APP}-volsync-b2-secret"
|
2024-10-15 00:11:18 +00:00
|
|
|
volumeSnapshotClassName: "${VOLSYNC_SNAPSHOTCLASS:-zfs-mainpool}"
|
2024-10-13 22:05:49 +00:00
|
|
|
cacheCapacity: "${VOLSYNC_CACHE_CAPACITY:-4Gi}"
|
|
|
|
cacheStorageClassName: "${VOLSYNC_CACHE_SNAPSHOTCLASS:-mainpool-hostpath}"
|
|
|
|
cacheAccessModes: ["${VOLSYNC_CACHE_ACCESSMODES:-ReadWriteOnce}"]
|
2024-10-15 00:11:18 +00:00
|
|
|
storageClassName: "${VOLSYNC_STORAGECLASS:-openebs-zfs-mainpool}"
|
2024-10-13 22:05:49 +00:00
|
|
|
accessModes: ["${VOLSYNC_ACCESSMODES:-ReadWriteOnce}"]
|
|
|
|
moverSecurityContext:
|
|
|
|
runAsUser: 10000
|
|
|
|
runAsGroup: 10000
|
|
|
|
fsGroup: 10000
|
|
|
|
retain:
|
|
|
|
daily: 7
|