fix: try to use openebs zfs-localpv to backup radarr

This commit is contained in:
SeanOMik 2024-10-14 20:11:18 -04:00
parent cbf08842fc
commit 48a57df9a9
Signed by: SeanOMik
GPG Key ID: FEC9E2FC15235964
7 changed files with 21 additions and 14 deletions

View File

@ -11,11 +11,11 @@ spec:
copyMethod: "${VOLSYNC_COPYMETHOD:-Snapshot}"
pruneIntervalDays: 7
repository: "${APP}-volsync-b2-secret"
volumeSnapshotClassName: "${VOLSYNC_SNAPSHOTCLASS:-longhorn}"
volumeSnapshotClassName: "${VOLSYNC_SNAPSHOTCLASS:-zfs-mainpool}"
cacheCapacity: "${VOLSYNC_CACHE_CAPACITY:-4Gi}"
cacheStorageClassName: "${VOLSYNC_CACHE_SNAPSHOTCLASS:-mainpool-hostpath}"
cacheAccessModes: ["${VOLSYNC_CACHE_ACCESSMODES:-ReadWriteOnce}"]
storageClassName: "${VOLSYNC_STORAGECLASS:-longhorn}"
storageClassName: "${VOLSYNC_STORAGECLASS:-openebs-zfs-mainpool}"
accessModes: ["${VOLSYNC_ACCESSMODES:-ReadWriteOnce}"]
moverSecurityContext:
runAsUser: 10000

View File

@ -12,11 +12,11 @@ spec:
copyMethod: "${VOLSYNC_COPYMETHOD:-Snapshot}"
pruneIntervalDays: 7
repository: "${APP}-volsync-secret"
volumeSnapshotClassName: "${VOLSYNC_SNAPSHOTCLASS:-longhorn}"
volumeSnapshotClassName: "${VOLSYNC_SNAPSHOTCLASS:-zfs-mainpool}"
cacheCapacity: "${VOLSYNC_CACHE_CAPACITY:-4Gi}"
cacheStorageClassName: "${VOLSYNC_CACHE_SNAPSHOTCLASS:-mainpool-hostpath}"
cacheAccessModes: ["${VOLSYNC_CACHE_ACCESSMODES:-ReadWriteOnce}"]
storageClassName: "${VOLSYNC_STORAGECLASS:-longhorn}"
storageClassName: "${VOLSYNC_STORAGECLASS:-openebs-zfs-mainpool}"
accessModes: ["${VOLSYNC_ACCESSMODES:-ReadWriteOnce}"]
moverSecurityContext:
runAsUser: 10000
@ -38,11 +38,11 @@ spec:
restic:
repository: "${APP}-volsync-secret"
copyMethod: Snapshot # must be Snapshot
volumeSnapshotClassName: "${VOLSYNC_SNAPSHOTCLASS:-longhorn}"
volumeSnapshotClassName: "${VOLSYNC_SNAPSHOTCLASS:-zfs-mainpool}"
cacheStorageClassName: "${VOLSYNC_CACHE_SNAPSHOTCLASS:-mainpool-hostpath}"
cacheAccessModes: ["${VOLSYNC_CACHE_ACCESSMODES:-ReadWriteOnce}"]
cacheCapacity: "${VOLSYNC_CACHE_CAPACITY:-8Gi}"
storageClassName: "${VOLSYNC_STORAGECLASS:-longhorn}"
storageClassName: "${VOLSYNC_STORAGECLASS:-openebs-zfs-mainpool}"
accessModes: ["${VOLSYNC_ACCESSMODES:-ReadWriteOnce}"]
capacity: "${VOLSYNC_CAPACITY}"
# moverSecurityContext:

View File

@ -11,4 +11,4 @@ spec:
resources:
requests:
storage: "${VOLSYNC_CAPACITY}"
storageClassName: "${VOLSYNC_STORAGECLASS:-longhorn}"
storageClassName: "${VOLSYNC_STORAGECLASS:-openebs-zfs-mainpool}"

View File

@ -90,9 +90,9 @@ spec:
persistence:
config:
type: hostPath
hostPath: /mnt/MainPool/Kubernetes/radarr
#existingClaim: radarr
#type: hostPath
#hostPath: /mnt/MainPool/Kubernetes/radarr
existingClaim: radarr
globalMounts:
- path: /config
# main: # controller name

View File

@ -1,8 +1,8 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
#- ./backup-creds.sops.yaml
#- ./minio-creds.sops.yaml
#- ../../../../../common/templates/volsync
- ./backup-creds.sops.yaml
- ./minio-creds.sops.yaml
- ../../../../../common/templates/volsync
- ./helm-release.yaml
- ./radarr-exportarr-metrics.yaml

View File

@ -3,3 +3,4 @@ kind: Kustomization
resources:
- ./mainpool-sc.yaml
- ./zfs-mainpool-sc.yaml
- ./zfs-snapshot.yaml

View File

@ -0,0 +1,6 @@
kind: VolumeSnapshotClass
apiVersion: snapshot.storage.k8s.io/v1
metadata:
name: zfs-mainpool
driver: zfs.csi.openebs.io
deletionPolicy: Delete