Update README
This commit is contained in:
9
examples/kubernetes/invalid-snapshot-v1.yaml
Normal file
9
examples/kubernetes/invalid-snapshot-v1.yaml
Normal 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
|
8
examples/kubernetes/snapshot-v1.yaml
Normal file
8
examples/kubernetes/snapshot-v1.yaml
Normal 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
|
6
examples/kubernetes/snapshotclass-v1.yaml
Normal file
6
examples/kubernetes/snapshotclass-v1.yaml
Normal 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
|
@@ -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
|
Reference in New Issue
Block a user