-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathvolsync.yaml
111 lines (111 loc) · 2.81 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
103
104
105
106
107
108
109
110
111
---
apiVersion: v1
kind: Secret
metadata:
name: forgejo-config-restic-config
namespace: development
type: Opaque
stringData:
RESTIC_REPOSITORY: "s3:http://minio.kube-system.svc:9000/restic/forgejo-config"
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: forgejo-config
namespace: development
spec:
sourcePVC: forgejo-config-pvc
trigger:
schedule: "0 3 * * *"
restic:
copyMethod: Snapshot
pruneIntervalDays: 10
repository: forgejo-config-restic-config
cacheCapacity: 2Gi
volumeSnapshotClassName: csi-rbdplugin-snapclass
storageClassName: rook-ceph-block
moverSecurityContext:
runAsUser: 1000
runAsGroup: 1000
fsGroup: 1000
retain:
daily: 30
within: 3d
unlock: "StopLocking"
---
apiVersion: v1
kind: Secret
metadata:
name: forgejo-custom-restic-config
namespace: development
type: Opaque
stringData:
RESTIC_REPOSITORY: "s3:http://minio.kube-system.svc:9000/restic/forgejo-custom"
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: forgejo-custom
namespace: development
spec:
sourcePVC: forgejo-custom-pvc
trigger:
schedule: "0 3 * * *"
restic:
copyMethod: Snapshot
pruneIntervalDays: 10
repository: forgejo-custom-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: "YourselfDangit"
---
apiVersion: v1
kind: Secret
metadata:
name: forgejo-data-restic-config
namespace: development
type: Opaque
stringData:
RESTIC_REPOSITORY: "s3:http://minio.kube-system.svc:9000/restic/forgejo-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: forgejo-data
namespace: development
spec:
sourcePVC: forgejo-data-pvc
trigger:
schedule: "0 3 * * *"
restic:
copyMethod: Snapshot
pruneIntervalDays: 10
repository: forgejo-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: "YourselfDangit"