-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathvolsync.yaml
36 lines (36 loc) · 893 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
---
apiVersion: v1
kind: Secret
metadata:
name: valheim-restic-config
namespace: default
type: Opaque
stringData:
RESTIC_REPOSITORY: "s3:http://minio.kube-system.svc:9000/restic/valheim"
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: valheim
namespace: default
spec:
sourcePVC: valheim-config
trigger:
schedule: "0 6 * * *"
restic:
copyMethod: Snapshot
pruneIntervalDays: 10
repository: valheim-restic-config
cacheCapacity: 2Gi
volumeSnapshotClassName: csi-rbdplugin-snapclass
storageClassName: rook-ceph-block
moverSecurityContext:
runAsUser: 1000
runAsGroup: 1000
fsGroup: 1000
retain:
daily: 10
within: 3d