You can dynamically provision a snapshot or create a pre-provisioned volume snapshot of a block volume in a TKG Service cluster. You can also restore an existing snapshot.
Create a Dynamically Provisioned Snapshot in a TKG Service Cluster
Dynamically provision a snapshot in a TKG Service cluster.
Procedure
Create a Pre-Provisioned Snapshot in a TKG Service Cluster
Create a pre-provisioned volume snapshot of any block volume (PVC) in a TKG Service cluster using a volume snapshot of the same block volume (PVC) from the Supervisor.
Follow these steps to statically create a volume snapshot in a new TKG cluster using the information from the leftover underlying snapshot in Supervisor.
Prerequisites
- Be familiar with information about creating Kubernetes snapshots. For details, see the Volume Snapshots page in Kubernetes documentation.
- Make sure that the volume snapshot satisfies the following conditions:
- The volume snapshot is present in the same namespace where the source PVC resides.
- The volume snapshot is present in the same namespace where the TKG cluster resides.
You can also reuse in a new TKG cluster a volume snapshot that is no longer needed by another TKG cluster in same namespace. To do this, change the deletionPolicy
of the VolumeSnapshotContent
in the original TKG cluster to Retain
, and then delete the corresponding VolumeSnapshot
as well as VolumeSnapshotContent
objects.
Procedure
Restore a Volume Snapshot in a TKG Service Cluster
Restore a volume snapshot that has been already created.