Kubernetes VolumeSnapshot - point-in-time copies of PersistentVolumeClaims with CSI
Answer: Define a VolumeSnapshot with persistentVolumeClaimName set to the PersistentVolumeClaim data source for the snapshot. Snapshots give a standardized way to copy a volume at a point in time, without a whole new volume; they need a CSI driver with snapshot support.
Example
apiVersion: snapshot.storage.k8s.io/v1
kind: VolumeSnapshot
metadata:
name: new-snapshot-test
spec:
volumeSnapshotClassName: csi-hostpath-snapclass
source:
persistentVolumeClaimName: pvc-test
The three objects
| API resource | Similar to | |---|---| | VolumeSnapshot | A user request for a snapshot, similar to a PersistentVolumeClaim | | VolumeSnapshotContent | A snapshot taken from a volume in the cluster, like a PersistentVolume | | VolumeSnapshotClass | Attributes for snapshots that a StorageClass cannot express |
Requirements
- These API objects are CRDs, not part of the core API. The CRDs and snapshot controller installations are the responsibility of the Kubernetes distribution.
VolumeSnapshotsupport is only available for CSI drivers, and CSI drivers may or may not have implemented it.- The snapshot controller creates and deletes
VolumeSnapshotContentobjects; the csi-snapshotter sidecar triggersCreateSnapshotandDeleteSnapshotagainst the CSI endpoint.
Provisioning
- Dynamic: the snapshot is taken from a PersistentVolumeClaim named in the
VolumeSnapshot. - Pre-provisioned: a cluster administrator creates
VolumeSnapshotContentobjects, and theVolumeSnapshotnames one withvolumeSnapshotContentName.
Restore and delete
- To restore, set the
dataSourcefield of a newPersistentVolumeClaimto the snapshot; the volume starts pre-populated with its data. - A PVC in active use as a snapshot source is not removed immediately; removal is postponed until the snapshot is readyToUse or aborted.
- Deleting the
VolumeSnapshotfollows theDeletionPolicy:Deleteremoves the underlying storage snapshot with theVolumeSnapshotContent;Retainkeeps both.
See also
Claims
- id: C1 claim: VolumeSnapshot support is only available for CSI drivers. source: S2 evidence: "
VolumeSnapshotsupport is only available for CSI drivers."
- id: C2 claim: Snapshot API objects are CRDs, not core API. source: S2 evidence: "are {{< glossary_tooltip term_id=\"CustomResourceDefinition\" text=\"CRDs\" >}}, not part of the core API."
- id: C3 claim: Retain keeps the snapshot and its content object. source: S1 evidence: "then both the underlying snapshot and"
Sources
- [S1] Volume Snapshots. Kubernetes docs. https://kubernetes.io/docs/concepts/storage/volume-snapshots/ . License: CC-BY-4.0. Accessed 2026-11-18.
- [S2] volume-snapshots.md (source page). kubernetes/website (GitHub). https://github.com/kubernetes/website/blob/main/content/en/docs/concepts/storage/volume-snapshots.md . License: CC-BY-4.0. Accessed 2026-11-18.
License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: Kubernetes docs, Volume Snapshots; kubernetes/website (GitHub), volume-snapshots.md (source page). CC-BY-4.0 (https://raw.githubusercontent.com/kubernetes/website/main/LICENSE). Copyright The Kubernetes Authors. Text was condensed and changed from the originals.
License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: Kubernetes docs, Volume Snapshots; kubernetes/website (GitHub), volume-snapshots.md (source page). CC-BY-4.0 (https://raw.githubusercontent.com/kubernetes/website/main/LICENSE). Copyright The Kubernetes Authors.
Cite this
iinventedlight. 2026. "Kubernetes VolumeSnapshot - point-in-time copies of PersistentVolumeClaims with CSI." iinventedlight Library, iil:note:tddgxkea, version of 2026-11-18. https://iinventedlight.com/library/notes/kubernetes-volume-snapshots/. License: CC-BY-4.0.
@misc{iil_note_tddgxkea,
author = {{iinventedlight}},
title = {{Kubernetes VolumeSnapshot - point-in-time copies of PersistentVolumeClaims with CSI}},
howpublished = {iinventedlight Library},
year = {2026},
date = {2026-11-18},
url = {https://iinventedlight.com/library/notes/kubernetes-volume-snapshots/},
note = {Permanent ID iil:note:tddgxkea. License: CC-BY-4.0.},
}
Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com. Or Report a correction (no account needed).
Extra files beside this note
These files use this note's license, shown below. Paper extras retain their reproduction status; a link is not a reproduction.
- kubernetes-volume-snapshots.table.json (table; CC-BY-4.0)
- kubernetes-volume-snapshots.schema.json (schema; CC-BY-4.0)
For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/kubernetes-volume-snapshots.md.