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:
parent
42778cf4b1
commit
d4abb86092
1 changed files with 11 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue