From c6ee7d56737ed04d3969608597cff8ef80d6352a Mon Sep 17 00:00:00 2001 From: Aaron Riedel Date: Fri, 25 Aug 2023 20:15:42 +0200 Subject: [PATCH] add CSI snapshotter to longhorn --- core-deployments.yaml | 3 +++ longhorn/volumesnapshotclass.yaml | 6 ++++++ 2 files changed, 9 insertions(+) create mode 100644 longhorn/volumesnapshotclass.yaml diff --git a/core-deployments.yaml b/core-deployments.yaml index 3dc16e4..7d19b49 100644 --- a/core-deployments.yaml +++ b/core-deployments.yaml @@ -71,6 +71,9 @@ spec: - repoURL: https://git.ar21.de/yolokube/core-deployments.git targetRevision: HEAD path: longhorn + - repoURL: https://github.com/kubernetes-csi/external-snapshotter.git + targetRevision: release-4.0 + path: client/config/crd destination: server: https://kubernetes.default.svc namespace: longhorn-system diff --git a/longhorn/volumesnapshotclass.yaml b/longhorn/volumesnapshotclass.yaml new file mode 100644 index 0000000..e14b02f --- /dev/null +++ b/longhorn/volumesnapshotclass.yaml @@ -0,0 +1,6 @@ +kind: VolumeSnapshotClass +apiVersion: snapshot.storage.k8s.io/v1 +metadata: + name: longhorn +driver: driver.longhorn.io +deletionPolicy: Delete \ No newline at end of file