Snapshot group of PVCs in AKS
Summary and Key concepts
Summary
This article provides a comprehensive guide on creating and managing group snapshots of Portworx volumes in Kubernetes using the GroupVolumeSnapshot
Custom Resource Definition (CRD). It covers prerequisites such as ensuring Stork is installed and operational, and explains how to create group snapshots for multiple PVCs, track snapshot status, and restore PVCs from the snapshots. The document also details how to set pre- and post-snapshot rules to manage application behavior during snapshot operations. It includes an example of taking group snapshots for Cassandra PVCs and restoring them, along with instructions for managing cross-namespace snapshots.
Kubernetes Concepts
- PersistentVolumeClaim (PVC): A user request for storage in Kubernetes, used for creating and restoring group snapshots.
- StorageClass: Defines how storage is dynamically provisioned for PVCs and snapshots.
- Annotations: Used to add metadata to objects such as PVCs and snapshots, including cross-namespace snapshot restoration.
- StatefulSet: Manages the deployment of stateful applications, ensuring each pod maintains a stable identity.
Portworx Concepts
-
Stork: A Portworx extension that handles advanced data management operations such as snapshots and backups in Kubernetes.
-
VolumeSnapshot: A snapshot of a Portworx volume that can be used for backup and recovery.
This document will show you how to create group snapshots of Portworx volumes and how you can restore those snapshots to use them in pods.