Cloud backups for single PVCs in AKS
Summary and Key concepts
Summary
This article provides a guide on creating cloud snapshots of Portworx volumes and restoring or cloning those snapshots for use in Kubernetes pods. It explains the prerequisites, including ensuring Stork is installed and configuring cloud secrets for authentication. The document covers how to create cloud snapshots using specific annotations and track their status, and it provides instructions for creating new Persistent Volume Claims (PVCs) from these snapshots using the Stork-provided stork-snapshot-sc
storage class.
Kubernetes Concepts
- PersistentVolumeClaim (PVC): A user request for storage in Kubernetes that can be snapshotted and cloned.
- Annotations: Metadata added to Kubernetes objects for managing snapshots, including cloud snapshots.
- Namespace: Provides isolation of resources like PVCs and snapshots.
Portworx Concepts
-
Stork: A Kubernetes extension for managing storage operations like cloud snapshots and restores.
-
VolumeSnapshot: Represents a snapshot of a Portworx volume, used for creating backups and restoring data from the cloud.
-
CloudSnap: The feature used for creating and managing cloud-based snapshots in Portworx.
This document will show you how to create cloud snapshots of Portworx volumes and how you can clone those snapshots to use them in pods.
You can restore these snapshots only in the cluster where the snapshots were taken.
Pre-requisites
Installing Stork
This requires that you already have Stork installed and running on your cluster. If you fetched the Portworx specs from the Portworx spec generator in Portworx Central and used the default options, Stork is already installed.