2024-10-13 23:26:00 +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}"
|
|
|
|
spec:
|
|
|
|
sourcePVC: "${APP}"
|
|
|
|
trigger:
|
|
|
|
schedule: "0 * * * *"
|
|
|
|
restic:
|
|
|
|
copyMethod: "${VOLSYNC_COPYMETHOD:-Snapshot}"
|
|
|
|
pruneIntervalDays: 7
|
|
|
|
repository: "${APP}-volsync-secret"
|
2024-10-14 02:10:13 +00:00
|
|
|
volumeSnapshotClassName: "${VOLSYNC_SNAPSHOTCLASS:-longhorn}"
|
2024-10-13 23:26:00 +00:00
|
|
|
cacheCapacity: "${VOLSYNC_CACHE_CAPACITY:-4Gi}"
|
|
|
|
cacheStorageClassName: "${VOLSYNC_CACHE_SNAPSHOTCLASS:-mainpool-hostpath}"
|
|
|
|
cacheAccessModes: ["${VOLSYNC_CACHE_ACCESSMODES:-ReadWriteOnce}"]
|
|
|
|
storageClassName: "${VOLSYNC_STORAGECLASS:-longhorn}"
|
|
|
|
accessModes: ["${VOLSYNC_ACCESSMODES:-ReadWriteOnce}"]
|
|
|
|
moverSecurityContext:
|
|
|
|
runAsUser: 10000
|
|
|
|
runAsGroup: 10000
|
|
|
|
fsGroup: 10000
|
|
|
|
retain:
|
|
|
|
hourly: 24
|
|
|
|
daily: 7
|
|
|
|
weekly: 5
|
|
|
|
---
|
|
|
|
# yaml-language-server: $schema=https://kubernetes-schemas.pages.dev/volsync.backube/replicationdestination_v1alpha1.json
|
|
|
|
apiVersion: volsync.backube/v1alpha1
|
|
|
|
kind: ReplicationDestination
|
|
|
|
metadata:
|
|
|
|
name: "${APP}-dst"
|
|
|
|
spec:
|
|
|
|
trigger:
|
|
|
|
manual: restore-once
|
|
|
|
restic:
|
|
|
|
repository: "${APP}-volsync-secret"
|
|
|
|
copyMethod: Snapshot # must be Snapshot
|
2024-10-14 01:42:24 +00:00
|
|
|
volumeSnapshotClassName: "${VOLSYNC_SNAPSHOTCLASS:-longhorn-backup}"
|
2024-10-13 23:26:00 +00:00
|
|
|
cacheStorageClassName: "${VOLSYNC_CACHE_SNAPSHOTCLASS:-mainpool-hostpath}"
|
|
|
|
cacheAccessModes: ["${VOLSYNC_CACHE_ACCESSMODES:-ReadWriteOnce}"]
|
|
|
|
cacheCapacity: "${VOLSYNC_CACHE_CAPACITY:-8Gi}"
|
|
|
|
storageClassName: "${VOLSYNC_STORAGECLASS:-longhorn}"
|
|
|
|
accessModes: ["${VOLSYNC_ACCESSMODES:-ReadWriteOnce}"]
|
|
|
|
capacity: "${VOLSYNC_CAPACITY}"
|
|
|
|
# moverSecurityContext:
|
|
|
|
# runAsUser: 10000
|
|
|
|
# runAsGroup: 10000
|
|
|
|
# fsGroup: 10000
|