-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathvolsync.yaml
102 lines (102 loc) · 2.6 KB
/
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
---
apiVersion: v1
kind: Secret
metadata:
name: dendrite-media-restic-config
namespace: social
type: Opaque
stringData:
RESTIC_REPOSITORY: "s3:http://minio.kube-system.svc:9000/restic/dendrite-media"
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: v1
kind: Secret
metadata:
name: dendrite-search-restic-config
namespace: social
type: Opaque
stringData:
RESTIC_REPOSITORY: "s3:http://minio.kube-system.svc:9000/restic/dendrite-search"
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: v1
kind: Secret
metadata:
name: dendrite-jetstream-restic-config
namespace: social
type: Opaque
stringData:
RESTIC_REPOSITORY: "s3:http://minio.kube-system.svc:9000/restic/dendrite-jetstream"
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: dendrite-media
namespace: social
spec:
sourcePVC: dendrite-media-pvc
trigger:
schedule: "0 5 * * *"
restic:
copyMethod: Snapshot
pruneIntervalDays: 10
repository: dendrite-media-restic-config
cacheCapacity: 2Gi
volumeSnapshotClassName: csi-rbdplugin-snapclass
storageClassName: rook-ceph-block
moverSecurityContext:
fsGroup: 1337
retain:
daily: 10
within: 3d
---
apiVersion: volsync.backube/v1alpha1
kind: ReplicationSource
metadata:
name: dendrite-search
namespace: social
spec:
sourcePVC: dendrite-search-pvc
trigger:
schedule: "0 5 * * *"
restic:
copyMethod: Snapshot
pruneIntervalDays: 10
repository: dendrite-search-restic-config
cacheCapacity: 2Gi
volumeSnapshotClassName: csi-rbdplugin-snapclass
storageClassName: rook-ceph-block
moverSecurityContext:
fsGroup: 1337
retain:
daily: 10
within: 3d
---
apiVersion: volsync.backube/v1alpha1
kind: ReplicationSource
metadata:
name: dendrite-jetstream
namespace: social
spec:
sourcePVC: dendrite-jetstream-pvc
trigger:
schedule: "0 5 * * *"
restic:
copyMethod: Snapshot
pruneIntervalDays: 10
repository: dendrite-jetstream-restic-config
cacheCapacity: 2Gi
volumeSnapshotClassName: csi-rbdplugin-snapclass
storageClassName: rook-ceph-block
moverSecurityContext:
fsGroup: 1337
retain:
daily: 10
within: 3d