Merge "Need the Procedure to enable snapshot functionality for KubeVirt + rook-ceph combination. (r10, dsr10)"

This commit is contained in:
Zuul 2025-03-18 18:06:30 +00:00 committed by Gerrit Code Review
commit 4c944af291

View File

@ -42,6 +42,10 @@ snapshot controller to be created on system. Follow the steps below:
#. Create ``VolumeSnapshotClass`` for ``cephfs`` and ``rbd``: #. Create ``VolumeSnapshotClass`` for ``cephfs`` and ``rbd``:
.. tabs::
.. group-tab:: Ceph
.. code-block:: none .. code-block:: none
cat <<EOF>cephfs-storageclass.yaml cat <<EOF>cephfs-storageclass.yaml
@ -71,6 +75,36 @@ snapshot controller to be created on system. Follow the steps below:
deletionPolicy: Delete deletionPolicy: Delete
EOF EOF
.. group-tab:: Rook Ceph
.. code-block:: none
cat <<EOF>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 <<EOF>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:: .. note::
Get the cluster ID from: ``kubectl describe sc cephfs, rbd``. Get the cluster ID from: ``kubectl describe sc cephfs, rbd``.