kind: VolumeSnapshot

From wikieduonline
Revision as of 08:53, 23 October 2023 by Welcome (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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: