2024-01-17 15:18:22 -06:00
|
|
|
---
|
2024-02-04 11:07:51 -06:00
|
|
|
# yaml-language-server: $schema=https://ks.hsn.dev/external-secrets.io/externalsecret_v1beta1.json
|
2024-01-17 15:18:22 -06:00
|
|
|
apiVersion: external-secrets.io/v1beta1
|
|
|
|
kind: ExternalSecret
|
|
|
|
metadata:
|
|
|
|
name: "${APP}-volsync-r2"
|
|
|
|
spec:
|
|
|
|
secretStoreRef:
|
|
|
|
kind: ClusterSecretStore
|
|
|
|
name: onepassword-connect
|
|
|
|
target:
|
|
|
|
name: "${APP}-volsync-r2-secret"
|
|
|
|
template:
|
|
|
|
engineVersion: v2
|
|
|
|
data:
|
|
|
|
RESTIC_REPOSITORY: "{{ .REPOSITORY_TEMPLATE }}/${APP}"
|
|
|
|
RESTIC_PASSWORD: "{{ .RESTIC_PASSWORD }}"
|
|
|
|
AWS_ACCESS_KEY_ID: "{{ .AWS_ACCESS_KEY_ID }}"
|
|
|
|
AWS_SECRET_ACCESS_KEY: "{{ .AWS_SECRET_ACCESS_KEY }}"
|
|
|
|
dataFrom:
|
|
|
|
- extract:
|
|
|
|
key: cloudflare
|
|
|
|
- extract:
|
|
|
|
key: volsync-r2-template
|
|
|
|
---
|
2024-02-04 11:07:51 -06:00
|
|
|
# yaml-language-server: $schema=https://ks.hsn.dev/volsync.backube/replicationsource_v1alpha1.json
|
2024-01-17 15:18:22 -06:00
|
|
|
apiVersion: volsync.backube/v1alpha1
|
|
|
|
kind: ReplicationSource
|
|
|
|
metadata:
|
|
|
|
name: "${APP}-r2"
|
|
|
|
spec:
|
|
|
|
sourcePVC: "${APP}"
|
|
|
|
trigger:
|
|
|
|
schedule: "0 0 * * *"
|
|
|
|
restic:
|
|
|
|
copyMethod: "${VOLSYNC_COPYMETHOD:-Snapshot}"
|
|
|
|
pruneIntervalDays: 7
|
|
|
|
repository: "${APP}-volsync-r2-secret"
|
2024-07-09 11:31:08 -05:00
|
|
|
volumeSnapshotClassName: "${VOLSYNC_SNAPSHOTCLASS:-zfs-generic-nfs-csi}"
|
2024-02-15 16:59:10 -06:00
|
|
|
cacheCapacity: "${VOLSYNC_CACHE_CAPACITY:-4Gi}"
|
2024-07-15 12:03:16 -05:00
|
|
|
cacheStorageClassName: "${VOLSYNC_CACHE_SNAPSHOTCLASS:-openebs-hostpath}"
|
2024-01-17 15:18:22 -06:00
|
|
|
cacheAccessModes: ["${VOLSYNC_CACHE_ACCESSMODES:-ReadWriteOnce}"]
|
2024-07-09 11:31:08 -05:00
|
|
|
storageClassName: "${VOLSYNC_STORAGECLASS:-zfs-generic-nfs-csi}"
|
2024-01-17 15:18:22 -06:00
|
|
|
accessModes: ["${VOLSYNC_ACCESSMODES:-ReadWriteOnce}"]
|
|
|
|
moverSecurityContext:
|
2024-02-28 20:28:55 -06:00
|
|
|
runAsUser: ${APP_UID:-568}
|
|
|
|
runAsGroup: ${APP_GID:-568}
|
|
|
|
fsGroup: ${APP_GID:-568}
|
2024-01-17 15:18:22 -06:00
|
|
|
retain:
|
2024-07-23 10:21:18 -05:00
|
|
|
daily: 30
|