Skip to content

Commit

Permalink
feat: add SnapshotClass and VolumeSnapshot example
Browse files Browse the repository at this point in the history
  • Loading branch information
wozniakjan committed Mar 18, 2023
1 parent 8c68ec2 commit b6adee9
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
9 changes: 9 additions & 0 deletions deploy/example/snapshot-nfs-dynamic.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
apiVersion: snapshot.storage.k8s.io/v1
kind: VolumeSnapshot
metadata:
name: test-nfs-snapshot
spec:
volumeSnapshotClassName: csi-nfs-snapclass
source:
persistentVolumeClaimName: pvc-nfs-dynamic
10 changes: 10 additions & 0 deletions deploy/example/snapshotclass-nfs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
apiVersion: snapshot.storage.k8s.io/v1
kind: VolumeSnapshotClass
metadata:
name: csi-nfs-snapclass
driver: nfs.csi.k8s.io
deletionPolicy: Delete
parameters:
server: nfs-server.default.svc.cluster.local
share: /

0 comments on commit b6adee9

Please sign in to comment.