Volume Snapshots
This tutorial demonstrates how to create and use a volume snapshot.
You need to create a workspace, a project and a user (). The user must be invited to the project with the role of . For more information, see Create Workspaces, Projects, Users and Roles.
Kubernetes version 1.17+.
You have an available volume so that you can create a snapshot for it. For more information, see .
Log in to the web console of KubeSphere as . On the Volumes page of your project, select a volume that you want to create a snapshot for.
In the displayed dialog box, set a name for the snapshot which serves as a unique identifier and select a Volume Snapshot Class. Click OK to finish.
Newly-created snapshots is displayed on the Volume Snapshots list.
There are two ways for you to use a snapshot to create a volume.
Log in to the web console of KubeSphere as . On a snapshot’s details page, click Apply to use the snapshot. Generally, the steps are the same as creating a volume directly.
In the displayed dialog box, set a name for the volume. Click Next to continue.
Note
On the Advanced Settings tab, add metadata for the volume such as labels and annotations. Click Create to finish.
You can see the volume created appear on the Volumes page.
Create a volume from the Volumes page
Log in to the web console of KubeSphere as . On the Volumes page of a project, click Create.
In the displayed dialog box, set a name for the volume. Click Next to continue.
On the Volume Settings tab, select From Volume Snapshot under the Method section. Select a snapshot and an access mode, and click Next to continue.
The volume created is displayed on the Volumes page.