kind: VolumeSnapshot

From wikieduonline
Jump to navigation Jump to search

apiVersion: snapshot.storage.k8s.io/v1
kind: VolumeSnapshot
metadata:
  name: new-snapshot-test
spec:
  source:
    persistentVolumeClaimName: your-pvc-to-create-snapshot


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


kubectl create -f your_new_snaspshots.yaml
volumesnapshot.snapshot.storage.k8s.io/new-snapshot-test created
kubectl get volumesnapshot

Kubernetes snapshots, kind: VolumeSnapshot, kind: VolumeSnapshotContent, kubectl create -f your_new_snaspshots.yaml

Advertising: