Kubernetes operator for automatically creating volume snapshots
Last updated Apr 15, 2026
56
Stars
14
Forks
0
Issues
0
Stars/day
Attention Score
14
Topics
Language breakdown
Python 89.7%
Mustache 8.3%
Dockerfile 2.0%
▸ Files
click to expand
README
Kubernetes Scheduled Volume Snapshotter
Overview
This repository builds upon the Kubernetes CSI'sVolumeSnapshot custom resource by allowing users to automatically snapshot their persistent volumes on a schedule they define. The functionality provided by this tool is something the Kubernetes Storage Special Interest Group has on their roadmap, but has yet to be implemented.
Prerequisites
You will need to have theVolumeSnapshot custom resource definition installed along with one or more CSI drivers. For more information about VolumeSnapshots in Kubernetes and the Kubernetes Container Storage Interface, see here.
The Scheduled Volume Snapshotter works with v1alpha1 (Kubernetes 1.12 - 1.16), v1beta1 (Kubernetes 1.17 - 1.19), and v1 (Kubernetes >= 1.20) versions of the VolumeSnapshot custom resource.
As of version v0.16.0, Docker images published are compatible with both amd64 and arm64 architectures.
Installation
The easiest way to deploy this operator is using the provided Helm chart:helm repo add scheduled-volume-snapshotter https://raw.githubusercontent.com/ryaneorth/k8s-scheduled-volume-snapshotter/main/repo
helm upgrade --install scheduled-volume-snapshotter scheduled-volume-snapshotter/scheduled-volume-snapshotter
Scheduling snapshots
Once the Helm chart is installed, you can schedule snapshots of existing persistent volumes by creating aScheduledVolumeSnapshot custom resource. Here is an example:
apiVersion: k8s.ryanorth.io/v1beta1
kind: ScheduledVolumeSnapshot
metadata:
name: my-scheduled-snapshot
namespace: foo
spec:
snapshotClassName: ebs
persistentVolumeClaimName: some-existing-pvc
snapshotFrequency: 1
snapshotRetention: 3
snapshotLabels:
firstLabel: someLabelValue
secondLabel: anotherLabelValue
See the ScheduledVolumeSnapshot custom resource definition for further details.
🔗 More in this category