CertGrid CertGrid
Hands-on Lab·Certified Kubernetes Administrator

Volume Snapshots

A snapshot is three objects with the same shape as PVC, PV and StorageClass. Restoring means creating a new PVC with the snapshot as its dataSource, which is a copy, not a rewind. And a crash-consistent snapshot of a running database is not a backup.

Storage Guide 74 of 103 Advanced

The snapshot API is snapshot.storage.k8s.io/v1, served by CRDs from the external-snapshotter project rather than by core Kubernetes.

Snapshots are taken by the driver, so both the original and the restored volume live wherever the hostpath driver runs.
Server NameIP AddressOSRolesCPURAMHDD
CKA1001192.168.0.175Ubuntu 26.04 LTSControl Plane Node2 Core4 GB50 GB
CKA1001-NODE01192.168.0.176Ubuntu 26.04 LTSWorker Node2 Core4 GB50 GB
CKA1001-NODE02192.168.0.177Ubuntu 26.04 LTSWorker Node2 Core4 GB50 GB
CKA1001-NODE03192.168.0.178Ubuntu 26.04 LTSWorker Node2 Core4 GB50 GB

This guide includes

Use this when you need a point-in-time copy of a volume, and when you have to explain why that copy is not a backup. This matters because the snapshot API mirrors the volume API exactly - and like the volume, it lives and dies inside the same cluster.

Before you start

  1. Three objects, in a shape you already know

  2. Take a snapshot

  3. Restore, and see that it is a copy

  4. The snapshot outlives its source

  5. Why this is not a backup

Official sources