Merge pull request #966 from leonardoce/examples
Add VolumeGroupSnaphot examples
This commit is contained in:
13
examples/kubernetes/groupsnapshot-v1alpha1.yaml
Normal file
13
examples/kubernetes/groupsnapshot-v1alpha1.yaml
Normal file
@@ -0,0 +1,13 @@
|
||||
---
|
||||
apiVersion: groupsnapshot.storage.k8s.io/v1alpha1
|
||||
kind: VolumeGroupSnapshot
|
||||
metadata:
|
||||
name: new-groupsnapshot-demo
|
||||
spec:
|
||||
source:
|
||||
selector:
|
||||
matchLabels:
|
||||
# The PVCs will need to have this label for it to be
|
||||
# included in the VolumeGroupSnapshot
|
||||
app.kubernetes.io/name: postgresql
|
||||
volumeGroupSnapshotClassName: csi-hostpath-groupsnapclass
|
7
examples/kubernetes/groupsnapshotclass-v1alpha1.yaml
Normal file
7
examples/kubernetes/groupsnapshotclass-v1alpha1.yaml
Normal file
@@ -0,0 +1,7 @@
|
||||
---
|
||||
apiVersion: groupsnapshot.storage.k8s.io/v1alpha1
|
||||
kind: VolumeGroupSnapshotClass
|
||||
metadata:
|
||||
name: csi-hostpath-groupsnapclass
|
||||
driver: hostpath.csi.k8s.io
|
||||
deletionPolicy: Delete
|
Reference in New Issue
Block a user