Volume snapshots

A volume snapshot is a copy of a volume at a point in time that you can use to back up a volume or create a new one.

A volume snapshot is a copy of a volume at a point in time. Use snapshots to back up a volume or to create a new volume from an earlier state. Volume snapshots are available only for CSI drivers that support them.

Snapshots use three custom resources: VolumeSnapshot, VolumeSnapshotContent, and VolumeSnapshotClass. They are analogous to PVCs, PVs, and storage classes. A snapshot controller and the csi-snapshotter sidecar container of the CSI driver handle them. You can create a snapshot dynamically from a PVC or pre-provision one from an existing snapshot on the storage back end.

Key defaults and limits

  • The deletionPolicy field of a snapshot class is Delete or Retain. It decides whether the snapshot on the storage back end is removed with the Kubernetes object.
  • While a snapshot is being created from a PVC, Kubernetes protects the PVC from deletion.
  • The snapshot custom resource definitions and the snapshot controller are not part of core Kubernetes. They must be installed in the cluster.

For more information, see Volume Snapshots.