Ka98
Ka98

Reputation: 1

Copying pvc snapshot from one kubernetes cluster to another

Can someone suggest any ideas, or references that I could use to copy a pvc snapshot from one cluster to another without using any third-party like velero.

Upvotes: 0

Views: 1459

Answers (1)

efdestegul
efdestegul

Reputation: 647

You can use Volume snapshots. Volume snapshots provide Kubernetes users with a standardized way to copy a volume's contents at a particular point in time without creating an entirely new volume. This functionality enables, for example, database administrators to backup databases before performing edit or delete modifications.

apiVersion: snapshot.storage.k8s.io/v1
kind: VolumeSnapshot
metadata:
  name: new-snapshot-test
spec:
  volumeSnapshotClassName: csi-hostpath-snapclass
  source:
    persistentVolumeClaimName: pvc-test

Upvotes: 1

Related Questions