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