Skip to content
This repository has been archived by the owner on Oct 25, 2023. It is now read-only.

Latest commit

 

History

History
30 lines (19 loc) · 2.23 KB

volume-snapshots.md

File metadata and controls

30 lines (19 loc) · 2.23 KB

Volume snapshots

Installation

In order to enable volume snapshotting feature one your cluster, you first need to install the snapshot-controller as well as snapshot CRDs. You can do so by following those instructions.

You will also need to install the snapshot validation webhook, by following those instructions.

Create a snapshot

To create a snapshot of a volume, you first have to create a VolumeSnapshotClass, which is equivalent of a StorageClass but for snapshots. Then you can create a VolumeSnapshot which use the newly created VolumeSnapshotClass. You can follow this snapshot example. For more informations, please refer to the kubernetes documentation.

Restore a snapshot

To restore a snapshot, you have to create a new PersistantVolumeClaim and specify the desired snapshot as a dataSource. You can find an example here. You can also refer to the kubernetes documentation.

Clone a volume

To clone a volume, you can follow the same procedure than to restore a snapshot, but configure another volume instead of a snapshot. An example can be found here and the kubernetes documentation here.


References: