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 Kvapil 2026-03-02 18:41:23 +01:00
parent 42778cf4b1
commit d4abb86092
No known key found for this signature in database
GPG key ID: 931CF7FEACEAF765

View file

@ -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