--- title: "Create a Volume Snapshot" slug: "create-a-volume-snapshot-2-4" updated: 2026-10-28T02:14:59Z published: 2026-10-28T02:14:59Z canonical: "docs.vastdata.com/create-a-volume-snapshot-2-4" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.vastdata.com/llms.txt > Use this file to discover all available pages before exploring further. # Create a Volume Snapshot To create a snapshot of a Kubernetes volume using a Kubernetes YAML configuration file: 1. Create a YAML configuration file that adds a volume snapshot. In the file (see the example below for correct indentation and line breaks when specifying the keywords): - In `medadata`: - `name` is the Persistent Volume Claim (PVC) name to store the snapshot. - In `spec`: - `volumeSnapshotClassName`: the name of the snapshot class. - In `source`: - `persistentVolumeClaimName` is the PVC name for the volume being protected. For example: ```plaintext apiVersion: snapshot.storage.k8s.io/v1 kind: VolumeSnapshot metadata:  name: snapshot-pvc-1 spec:  volumeSnapshotClassName: vastdata-snapshot  source:    persistentVolumeClaimName: csi-pvc ``` 2. Apply the YAML configuration file: ```plaintext kubectl apply -f vast-csi-deployment.yaml ``` 3. Verify that the PVC snapshot has been created with the following command: ```plaintext kubectl get vs ``` The output is similar to the following: ```plaintext NAME           READYTOUSE SOURCEPVC  SOURCESNAPSHOTCONTENT RESTORESIZE SNAPSHOTCLASS      SNAPSHOTCONTENT                                  CREATIONTIME AGE snapshot-pvc-1 true       vast-pvc-1 0                                 vastdata-snapshot  snapcontent-8b1627cc-d50a-4bdb-a1b4-67931d36eb85 50m          49m ```