-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathvolsync.yaml
37 lines (37 loc) · 950 Bytes
/
volsync.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
---
apiVersion: v1
kind: Secret
metadata:
name: opengist-data-restic-config
namespace: development
type: Opaque
stringData:
RESTIC_REPOSITORY: "s3:http://minio.kube-system.svc:9000/restic/opengist-data"
RESTIC_PASSWORD: ${SECRET_VOLSYNC_RESTIC_PASSWORD}
AWS_ACCESS_KEY_ID: ${SECRET_VOLSYNC_MINIO_ACCESS_KEY}
AWS_SECRET_ACCESS_KEY: ${SECRET_VOLSYNC_MINIO_SECRET_KEY}
---
apiVersion: volsync.backube/v1alpha1
kind: ReplicationSource
metadata:
name: opengist-data
namespace: development
spec:
sourcePVC: opengist-data-pvc
trigger:
schedule: "0 3 * * *"
restic:
copyMethod: Snapshot
pruneIntervalDays: 10
repository: opengist-data-restic-config
cacheCapacity: 2Gi
volumeSnapshotClassName: csi-rbdplugin-snapclass
storageClassName: rook-ceph-block
moverSecurityContext:
runAsUser: 1000
runAsGroup: 1000
fsGroup: 1000
retain:
daily: 14
within: 3d
unlock: "OhEmGee"