- 27 Jun 2024
- 1 Minute to read
- Print
- DarkLight
PVC Snapshots
- Updated on 27 Jun 2024
- 1 Minute to read
- Print
- DarkLight
After creating and configuring a PVC, snapshots can be created to enable rolling back to a specific point in time.
Creating a PVC Snapshot
To create a Snapshot, go to STORAGE>Volumes and click on Create PVC Snapshot.
Select the volume, and define the snapshot’s name. The contents of the required YAML file will be displayed.
As specified in the YAML, the VolumeSnapshotClass will be created, in which Volumez (the CSI Provisioner vlz) manages the snapshot. Copy the displayed file contents and initiate the YAML in Kubernetes by apply -f in kubectl.
Rollback of a PVC
To perform a rollback of a PVC to a previous point in time, go to STORAGE>Volumes and click on PVC Rollback.
Choose the snapshot from which to restore the PVC, and give the rollback a name. The selected snapshot will become the new "top” snapshot, meaning the volume and new snapshots will start from that point.
Initiate the YAML in Kubernetes by apply -f in kubectl.