diff --git a/examples/kubernetes/groupsnapshot-v1alpha1.yaml b/examples/kubernetes/groupsnapshot-v1alpha1.yaml new file mode 100644 index 00000000..6c7887c2 --- /dev/null +++ b/examples/kubernetes/groupsnapshot-v1alpha1.yaml @@ -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 diff --git a/examples/kubernetes/groupsnapshotclass-v1alpha1.yaml b/examples/kubernetes/groupsnapshotclass-v1alpha1.yaml new file mode 100644 index 00000000..014e2c3f --- /dev/null +++ b/examples/kubernetes/groupsnapshotclass-v1alpha1.yaml @@ -0,0 +1,7 @@ +--- +apiVersion: groupsnapshot.storage.k8s.io/v1alpha1 +kind: VolumeGroupSnapshotClass +metadata: + name: csi-hostpath-groupsnapclass +driver: hostpath.csi.k8s.io +deletionPolicy: Delete