Merge pull request #966 from leonardoce/examples

Add VolumeGroupSnaphot examples
This commit is contained in:
Kubernetes Prow Robot
2023-11-29 16:57:15 +01:00
committed by GitHub
2 changed files with 20 additions and 0 deletions

View 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

View 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