mirror of
https://github.com/cozystack/cozystack.git
synced 2026-11-09 14:02:56 +09:00
feat(linstor): configure VolumeSnapshotClasses for relocation and Velero
Enable relocate-after-restore on the default linstor-snapshots class so that PVCs restored from snapshots get replicas relocated to optimal nodes. Add a separate linstor-snapshots-velero class with the Velero annotation and without relocation, so Velero's temporary data mover PVCs are not relocated unnecessarily. Co-Authored-By: Claude <noreply@anthropic.com> Signed-off-by: Andrei Kvapil <kvapss@gmail.com>
This commit is contained in:
1 file changed
+11
@@ -6,3 +6,14 @@ metadata:
|
||||
name: linstor-snapshots
|
||||
driver: linstor.csi.linbit.com
|
||||
deletionPolicy: Delete
|
||||
parameters:
|
||||
snap.linstor.csi.linbit.com/relocate-after-restore: "true"
|
||||
---
|
||||
apiVersion: snapshot.storage.k8s.io/v1
|
||||
kind: VolumeSnapshotClass
|
||||
metadata:
|
||||
annotations:
|
||||
velero.io/csi-volumesnapshot-class: "true"
|
||||
name: linstor-snapshots-ephemeral
|
||||
driver: linstor.csi.linbit.com
|
||||
deletionPolicy: Delete
|
||||
Reference in new issue
Block a user