doc: Add step to verify if PVC is in Bound State

Verify if PVC is in Bound state before it's
snapshot is created.

Signed-off-by: Yug <yuggupta27@gmail.com>
This commit is contained in:
Yug 2020-08-21 17:35:01 +05:30 committed by mergify[bot]
parent d9c8b07b84
commit c73fa55b97

View File

@ -35,9 +35,19 @@ kubectl create -f ../examples/cephfs/snapshotclass.yaml
The snapshot is created on/for an existing PVC. You should The snapshot is created on/for an existing PVC. You should
have a PVC in bound state before creating snapshot from it. have a PVC in bound state before creating snapshot from it.
please refer pvc creation [doc](https://github.com/ceph/ceph-csi/blob/master/docs/deploy-cephfs.md) Please refer pvc creation [doc](https://github.com/ceph/ceph-csi/blob/master/docs/deploy-cephfs.md)
for more information on how to create a PVC. for more information on how to create a PVC.
- Verify if PVC is in Bound state
```console
$ kubectl get pvc
NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS AGE
csi-cephfs-pvc Bound pvc-1ea51547-a88b-4ab0-8b4a-812caeaf025d 1Gi RWX csi-cephfs-sc 20h
```
- Create snapshot of the bound PVC
```console ```console
$ kubectl create -f ../examples/cephfs/snapshot.yaml $ kubectl create -f ../examples/cephfs/snapshot.yaml
volumesnapshot.snapshot.storage.k8s.io/cephfs-pvc-snapshot created volumesnapshot.snapshot.storage.k8s.io/cephfs-pvc-snapshot created