Need the Procedure to enable snapshot functionality for KubeVirt + rook-ceph combination. (r10, dsr10)
Change-Id: I39980646faf9b4a28dda0895bec59619399bb149 Signed-off-by: Ngairangbam Mili <ngairangbam.mili@windriver.com> (cherry picked from commit f0013826e3943fbc68fa5adff9529f8e3c992c68)
This commit is contained in:
parent
e0fb83d0cb
commit
9ba90d16d1
@ -42,6 +42,10 @@ snapshot controller to be created on system. Follow the steps below:
|
||||
|
||||
#. Create ``VolumeSnapshotClass`` for ``cephfs`` and ``rbd``:
|
||||
|
||||
.. tabs::
|
||||
|
||||
.. group-tab:: Ceph
|
||||
|
||||
.. code-block:: none
|
||||
|
||||
cat <<EOF>cephfs-storageclass.yaml
|
||||
@ -71,6 +75,36 @@ snapshot controller to be created on system. Follow the steps below:
|
||||
deletionPolicy: Delete
|
||||
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::
|
||||
|
||||
Get the cluster ID from: ``kubectl describe sc cephfs, rbd``.
|
||||
|
Loading…
x
Reference in New Issue
Block a user