Update README

This commit is contained in:
xing-yang
2020-12-17 15:45:28 +00:00
parent 03046a3274
commit 7e83f249ae
10 changed files with 75 additions and 31 deletions

View File

@@ -0,0 +1,9 @@
apiVersion: snapshot.storage.k8s.io/v1
kind: VolumeSnapshot
metadata:
name: new-snapshot-demo-v1
spec:
volumeSnapshotClassName: csi-hostpath-snapclass-v1
source: # Only one of the two fields should be set for a snapshot. Therefore this snapshot is invalid.
persistentVolumeClaimName: pvc
volumeSnapshotContentName: vsc

View File

@@ -0,0 +1,8 @@
apiVersion: snapshot.storage.k8s.io/v1
kind: VolumeSnapshot
metadata:
name: new-snapshot-demo-v1
spec:
volumeSnapshotClassName: csi-hostpath-snapclass-v1
source:
persistentVolumeClaimName: hpvc

View File

@@ -0,0 +1,6 @@
apiVersion: snapshot.storage.k8s.io/v1
kind: VolumeSnapshotClass
metadata:
name: csi-hostpath-snapclass-v1
driver: hostpath.csi.k8s.io
deletionPolicy: Delete

View File

@@ -2,5 +2,5 @@ apiVersion: snapshot.storage.k8s.io/v1beta1
kind: VolumeSnapshotClass
metadata:
name: csi-hostpath-snapclass
driver: hostpath.csi.k8s.io #csi-hostpath
driver: hostpath.csi.k8s.io
deletionPolicy: Delete