From e738c7ebead263860b687814c0c2a8013f9e41b8 Mon Sep 17 00:00:00 2001 From: auricom Date: Sat, 17 Apr 2021 11:45:51 +0200 Subject: [PATCH] feat: add longhorn volumesnapshotclass --- .../core/infrastructure/longhorn-system/kustomization.yaml | 5 +++-- .../longhorn-system/volumesnapshotclass.yaml | 7 +++++++ 2 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 cluster/core/infrastructure/longhorn-system/volumesnapshotclass.yaml diff --git a/cluster/core/infrastructure/longhorn-system/kustomization.yaml b/cluster/core/infrastructure/longhorn-system/kustomization.yaml index 0069e577b..e99fd5cba 100644 --- a/cluster/core/infrastructure/longhorn-system/kustomization.yaml +++ b/cluster/core/infrastructure/longhorn-system/kustomization.yaml @@ -1,8 +1,9 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization resources: + - secret.enc.yaml + - storageclass.yaml + - volumesnapshotclass.yaml - helm-release.yaml - ingress.yaml - monitoring.yaml - - storageclass.yaml - - secret.enc.yaml diff --git a/cluster/core/infrastructure/longhorn-system/volumesnapshotclass.yaml b/cluster/core/infrastructure/longhorn-system/volumesnapshotclass.yaml new file mode 100644 index 000000000..ddf35a56a --- /dev/null +++ b/cluster/core/infrastructure/longhorn-system/volumesnapshotclass.yaml @@ -0,0 +1,7 @@ +--- +kind: VolumeSnapshotClass +apiVersion: snapshot.storage.k8s.io/v1beta1 +metadata: + name: longhorn +driver: driver.longhorn.io +deletionPolicy: Delete