Skip to content

Commit cdbbb78

Browse files
authored
Merge pull request #966 from leonardoce/examples
Add VolumeGroupSnaphot examples
2 parents 2dd157a + b5743bf commit cdbbb78

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
apiVersion: groupsnapshot.storage.k8s.io/v1alpha1
3+
kind: VolumeGroupSnapshot
4+
metadata:
5+
name: new-groupsnapshot-demo
6+
spec:
7+
source:
8+
selector:
9+
matchLabels:
10+
# The PVCs will need to have this label for it to be
11+
# included in the VolumeGroupSnapshot
12+
app.kubernetes.io/name: postgresql
13+
volumeGroupSnapshotClassName: csi-hostpath-groupsnapclass
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
apiVersion: groupsnapshot.storage.k8s.io/v1alpha1
3+
kind: VolumeGroupSnapshotClass
4+
metadata:
5+
name: csi-hostpath-groupsnapclass
6+
driver: hostpath.csi.k8s.io
7+
deletionPolicy: Delete

0 commit comments

Comments
 (0)