From 7ca070438db0f121477b81673ecba8cac6e125c8 Mon Sep 17 00:00:00 2001 From: Philippe Caseiro Date: Mon, 25 Sep 2023 13:38:16 +0200 Subject: [PATCH] feat(longhorn): adding longhorn installation --- base/longhorn/kustomization.yaml | 6 ++++++ base/longhorn/resources/storage-class.yaml | 11 +++++++++++ 2 files changed, 17 insertions(+) create mode 100644 base/longhorn/kustomization.yaml create mode 100644 base/longhorn/resources/storage-class.yaml diff --git a/base/longhorn/kustomization.yaml b/base/longhorn/kustomization.yaml new file mode 100644 index 0000000..9a6829d --- /dev/null +++ b/base/longhorn/kustomization.yaml @@ -0,0 +1,6 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization + +resources: +- https://raw.githubusercontent.com/longhorn/longhorn/v1.5.1/deploy/longhorn.yaml +- ./resources/storage-class.yaml diff --git a/base/longhorn/resources/storage-class.yaml b/base/longhorn/resources/storage-class.yaml new file mode 100644 index 0000000..5d0f4ec --- /dev/null +++ b/base/longhorn/resources/storage-class.yaml @@ -0,0 +1,11 @@ +kind: StorageClass +apiVersion: storage.k8s.io/v1 +metadata: + name: longhorn +provisioner: driver.longhorn.io +allowVolumeExpansion: true +parameters: + numberOfReplicas: "3" + staleReplicaTimeout: "2880" # 48 hours in minutes + fromBackup: "" + fsType: "ext4"