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:
Andrei KvapilandClaude committed 2026-03-10 12:42:01 +01:00
1 parent 42778cf4b1
commit d4abb86092
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