chore: change name of longhorn snapshot class

This commit is contained in:
SeanOMik 2024-10-13 22:14:58 -04:00
parent e02c4d8066
commit c9c1a8765f
Signed by: SeanOMik
GPG Key ID: FEC9E2FC15235964
4 changed files with 6 additions and 8 deletions

View File

@ -11,7 +11,7 @@ spec:
copyMethod: "${VOLSYNC_COPYMETHOD:-Snapshot}" copyMethod: "${VOLSYNC_COPYMETHOD:-Snapshot}"
pruneIntervalDays: 7 pruneIntervalDays: 7
repository: "${APP}-volsync-b2-secret" repository: "${APP}-volsync-b2-secret"
volumeSnapshotClassName: "${VOLSYNC_SNAPSHOTCLASS:-longhorn-backup}" volumeSnapshotClassName: "${VOLSYNC_SNAPSHOTCLASS:-longhorn}"
cacheCapacity: "${VOLSYNC_CACHE_CAPACITY:-4Gi}" cacheCapacity: "${VOLSYNC_CACHE_CAPACITY:-4Gi}"
cacheStorageClassName: "${VOLSYNC_CACHE_SNAPSHOTCLASS:-mainpool-hostpath}" cacheStorageClassName: "${VOLSYNC_CACHE_SNAPSHOTCLASS:-mainpool-hostpath}"
cacheAccessModes: ["${VOLSYNC_CACHE_ACCESSMODES:-ReadWriteOnce}"] cacheAccessModes: ["${VOLSYNC_CACHE_ACCESSMODES:-ReadWriteOnce}"]

View File

@ -12,7 +12,7 @@ spec:
copyMethod: "${VOLSYNC_COPYMETHOD:-Snapshot}" copyMethod: "${VOLSYNC_COPYMETHOD:-Snapshot}"
pruneIntervalDays: 7 pruneIntervalDays: 7
repository: "${APP}-volsync-secret" repository: "${APP}-volsync-secret"
volumeSnapshotClassName: "${VOLSYNC_SNAPSHOTCLASS:-longhorn-backup}" volumeSnapshotClassName: "${VOLSYNC_SNAPSHOTCLASS:-longhorn}"
cacheCapacity: "${VOLSYNC_CACHE_CAPACITY:-4Gi}" cacheCapacity: "${VOLSYNC_CACHE_CAPACITY:-4Gi}"
cacheStorageClassName: "${VOLSYNC_CACHE_SNAPSHOTCLASS:-mainpool-hostpath}" cacheStorageClassName: "${VOLSYNC_CACHE_SNAPSHOTCLASS:-mainpool-hostpath}"
cacheAccessModes: ["${VOLSYNC_CACHE_ACCESSMODES:-ReadWriteOnce}"] cacheAccessModes: ["${VOLSYNC_CACHE_ACCESSMODES:-ReadWriteOnce}"]
@ -38,7 +38,7 @@ spec:
restic: restic:
repository: "${APP}-volsync-secret" repository: "${APP}-volsync-secret"
copyMethod: Snapshot # must be Snapshot copyMethod: Snapshot # must be Snapshot
volumeSnapshotClassName: "${VOLSYNC_SNAPSHOTCLASS:-longhorn-backup}" volumeSnapshotClassName: "${VOLSYNC_SNAPSHOTCLASS:-longhorn}"
cacheStorageClassName: "${VOLSYNC_CACHE_SNAPSHOTCLASS:-mainpool-hostpath}" cacheStorageClassName: "${VOLSYNC_CACHE_SNAPSHOTCLASS:-mainpool-hostpath}"
cacheAccessModes: ["${VOLSYNC_CACHE_ACCESSMODES:-ReadWriteOnce}"] cacheAccessModes: ["${VOLSYNC_CACHE_ACCESSMODES:-ReadWriteOnce}"]
cacheCapacity: "${VOLSYNC_CACHE_CAPACITY:-8Gi}" cacheCapacity: "${VOLSYNC_CACHE_CAPACITY:-8Gi}"

View File

@ -6,4 +6,4 @@ resources:
- ./helm-release.yaml - ./helm-release.yaml
- ./alerts.yaml - ./alerts.yaml
- ./service-monitor.yaml - ./service-monitor.yaml
- ./snapshot-class-bak.yaml - ./snapshot-class.yaml

View File

@ -2,8 +2,6 @@
kind: VolumeSnapshotClass kind: VolumeSnapshotClass
apiVersion: snapshot.storage.k8s.io/v1 apiVersion: snapshot.storage.k8s.io/v1
metadata: metadata:
name: longhorn-backup name: longhorn
driver: driver.longhorn.io driver: driver.longhorn.io
deletionPolicy: Delete deletionPolicy: Delete
parameters:
type: bak