diff --git a/docs/FAQ.md b/docs/FAQ.md index 1813f6f9..5ed29a7a 100644 --- a/docs/FAQ.md +++ b/docs/FAQ.md @@ -325,4 +325,56 @@ while [[ $kubectl_completed_check -eq 0 ]]; do kubectl_completed_check=`kubectl -n $ns get pods | grep migrate-pv-$src | grep "Completed" | wc -l` done echo "Data migration completed" -``` \ No newline at end of file +``` + +## How to Create Volume Snapshots? + +You can read more about snapshots [here](https://kubernetes.io/docs/concepts/storage/volume-snapshots/). + +### Step 1: Enabling the snapshot-controller + +First, you need to enable the snapshot-controller: + +```shell +kubectl apply -f -< +spec: + volumeSnapshotClassName: sds-local-volume-snapshot-class + source: + persistentVolumeClaimName: +EOF +``` + +Note that `sds-local-volume-snapshot-class` is created automatically, and it's `deletionPolicy` is `Delete`, which means that `VolumeSnapshotContent` should be deleted when its bound `VolumeSnapshot` is deleted. + + +### Step 3: Checking the Snapshot Status + +To check the status of the created snapshot, execute the command: + +```shell +kubectl get volumesnapshot +``` + +This command will display a list of all snapshots and their current status. \ No newline at end of file