Snapshot
We can create a snapshot of a volume that can be used further for creating a clone and for taking a backup. To create a snapshot, we have to first create a SnapshotClass just like a storage class where you can provide deletionPolicy as Retain or Delete.
Apply the snapshotclass YAML:
Find a PVC for which snapshot has to be created.
Create the snapshot using the created SnapshotClass for the selected PVC.
Apply the snapshot.yaml.
note
Create the snapshot in the same namespace where the PVC is created. Check the created snapshot resource, make sure readyToUsefield is true, before using this snapshot for any purpose.
Check the OpenEBS resource for the created snapshot. The status should be "Ready".
We can go to the node and confirm that snapshot has been created: