From f0013826e3943fbc68fa5adff9529f8e3c992c68 Mon Sep 17 00:00:00 2001 From: Ngairangbam Mili Date: Tue, 18 Mar 2025 04:07:00 +0000 Subject: [PATCH] Need the Procedure to enable snapshot functionality for KubeVirt + rook-ceph combination. (r10, dsr10) Change-Id: I39980646faf9b4a28dda0895bec59619399bb149 Signed-off-by: Ngairangbam Mili --- .../vm-snapshot-and-restore-21158b60cd56.rst | 88 +++++++++++++------ 1 file changed, 61 insertions(+), 27 deletions(-) diff --git a/doc/source/kube-virt/vm-snapshot-and-restore-21158b60cd56.rst b/doc/source/kube-virt/vm-snapshot-and-restore-21158b60cd56.rst index 1b71cfad4..0736348cf 100644 --- a/doc/source/kube-virt/vm-snapshot-and-restore-21158b60cd56.rst +++ b/doc/source/kube-virt/vm-snapshot-and-restore-21158b60cd56.rst @@ -42,34 +42,68 @@ snapshot controller to be created on system. Follow the steps below: #. Create ``VolumeSnapshotClass`` for ``cephfs`` and ``rbd``: - .. code-block:: none + .. tabs:: - cat <cephfs-storageclass.yaml - — - apiVersion: snapshot.storage.k8s.io/v1 - kind: VolumeSnapshotClass - metadata: - name: csi-cephfsplugin-snapclass - driver: cephfs.csi.ceph.com - parameters: - clusterID: 60ee9439-6204-4b11-9b02-3f2c2f0a4344 - csi.storage.k8s.io/snapshotter-secret-name: ceph-pool-kube-cephfs-data - csi.storage.k8s.io/snapshotter-secret-namespace: default - deletionPolicy: Delete - EOF - cat <rbd-storageclass.yaml - — - apiVersion: snapshot.storage.k8s.io/v1 - kind: VolumeSnapshotClass - metadata: - name: csi-rbdplugin-snapclass - driver: rbd.csi.ceph.com - parameters: - clusterID: 60ee9439-6204-4b11-9b02-3f2c2f0a4344 - csi.storage.k8s.io/snapshotter-secret-name: ceph-pool-kube-rbd - csi.storage.k8s.io/snapshotter-secret-namespace: default - deletionPolicy: Delete - EOF + .. group-tab:: Ceph + + .. code-block:: none + + cat <cephfs-storageclass.yaml + — + apiVersion: snapshot.storage.k8s.io/v1 + kind: VolumeSnapshotClass + metadata: + name: csi-cephfsplugin-snapclass + driver: cephfs.csi.ceph.com + parameters: + clusterID: 60ee9439-6204-4b11-9b02-3f2c2f0a4344 + csi.storage.k8s.io/snapshotter-secret-name: ceph-pool-kube-cephfs-data + csi.storage.k8s.io/snapshotter-secret-namespace: default + deletionPolicy: Delete + EOF + cat <rbd-storageclass.yaml + — + apiVersion: snapshot.storage.k8s.io/v1 + kind: VolumeSnapshotClass + metadata: + name: csi-rbdplugin-snapclass + driver: rbd.csi.ceph.com + parameters: + clusterID: 60ee9439-6204-4b11-9b02-3f2c2f0a4344 + csi.storage.k8s.io/snapshotter-secret-name: ceph-pool-kube-rbd + csi.storage.k8s.io/snapshotter-secret-namespace: default + deletionPolicy: Delete + EOF + + .. group-tab:: Rook Ceph + + .. code-block:: none + + cat <cephfs-storageclass.yaml + apiVersion: snapshot.storage.k8s.io/v1 + kind: VolumeSnapshotClass + metadata: + name: csi-cephfsplugin-snapclass + driver: rook-ceph.cephfs.csi.ceph.com + parameters: + clusterID: rook-ceph + csi.storage.k8s.io/snapshotter-secret-name: rook-csi-cephfs-provisioner + csi.storage.k8s.io/snapshotter-secret-namespace: rook-ceph + deletionPolicy: Delete + EOF + cat <rbd-storageclass.yaml + --- + apiVersion: snapshot.storage.k8s.io/v1 + kind: VolumeSnapshotClass + metadata: + name: csi-rbdplugin-snapclass + driver: rook-ceph.rbd.csi.ceph.com + parameters: + clusterID: rook-ceph + csi.storage.k8s.io/snapshotter-secret-name: rook-csi-rbd-provisioner + csi.storage.k8s.io/snapshotter-secret-namespace: rook-ceph + deletionPolicy: Delete + EOF .. note::