Merge "Need the Procedure to enable snapshot functionality for KubeVirt + rook-ceph combination. (r10, dsr10)"
This commit is contained in:
commit
4c944af291
@ -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``.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user