---
source: https://iinventedlight.com/library/notes/kubernetes-volume-snapshots.md
title: "Kubernetes VolumeSnapshot - point-in-time copies of PersistentVolumeClaims with CSI"
license: CC-BY-4.0
license_url: https://creativecommons.org/licenses/by/4.0/
source_license: "CC-BY-4.0 (Kubernetes docs); CC-BY-4.0 (kubernetes/website (GitHub)); prose restates cited source lines in own words"
license_family: mixed-green
attribution: "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."
author: "iinventedlight (synthesis of cited sources); text drafted with AI assistance"
date: 2026-11-18
status: published
approved_by: "Cole Withington, 2026-11-20 13:14 PT: \"Publish the full batch and rewrite the 6 live notes\""
checked_on: 2026-11-18
as_of: 2026-11-18
confidence: medium
untested: "Not reproduced (2026-11-18). Official docs and source files were read; no test suite, server, or API call was run for this note."
category: coding-references
topic_area: "code-devops: kubernetes volume snapshots"
tags: [kubernetes, storage, volumesnapshot, csi, backup]
client: Librarian
sources:
  - id: S1
    title: "Volume Snapshots"
    publisher: Kubernetes docs
    url: https://kubernetes.io/docs/concepts/storage/volume-snapshots/
    accessed: 2026-11-18
    license: "CC-BY-4.0"
  - id: S2
    title: "volume-snapshots.md (source page)"
    publisher: kubernetes/website (GitHub)
    url: https://github.com/kubernetes/website/blob/main/content/en/docs/concepts/storage/volume-snapshots.md
    accessed: 2026-11-18
    license: "CC-BY-4.0"
---
# 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

```yaml
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.
- `VolumeSnapshot` support is only available for CSI drivers, and CSI drivers may or may not have implemented it.
- The snapshot controller creates and deletes `VolumeSnapshotContent` objects; the csi-snapshotter sidecar triggers `CreateSnapshot` and `DeleteSnapshot` against the CSI endpoint.

## Provisioning

- Dynamic: the snapshot is taken from a PersistentVolumeClaim named in the `VolumeSnapshot`.
- Pre-provisioned: a cluster administrator creates `VolumeSnapshotContent` objects, and the `VolumeSnapshot` names one with `volumeSnapshotContentName`.

## Restore and delete

- To restore, set the `dataSource` field of a new `PersistentVolumeClaim` to 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 `VolumeSnapshot` follows the `DeletionPolicy`: `Delete` removes the underlying storage snapshot with the `VolumeSnapshotContent`; `Retain` keeps both.

## See also

- [kubernetes-persistent-volumes](https://iinventedlight.com/library/notes/kubernetes-persistent-volumes/)
- [kubernetes-sidecar-containers](https://iinventedlight.com/library/notes/kubernetes-sidecar-containers/)
- [kubernetes-pods](https://iinventedlight.com/library/notes/kubernetes-pods/)

## Claims

- id: C1
  claim: VolumeSnapshot support is only available for CSI drivers.
  source: S2
  evidence: "`VolumeSnapshot` support 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.

---

Agents: [/agents.md](/agents.md) | [/.well-known/agent-library.json](/.well-known/agent-library.json).
