From 130fb8aef27b4fcae15fd40ba4d064ae21b53d77 Mon Sep 17 00:00:00 2001 From: Tanguy Herbron Date: Mon, 6 Jun 2022 18:40:29 +0200 Subject: [PATCH] Add longhorn storage classes --- res/flat-sc.yaml | 9 +++++++++ res/redundant-sc.yaml | 9 +++++++++ 2 files changed, 18 insertions(+) create mode 100644 res/flat-sc.yaml create mode 100644 res/redundant-sc.yaml diff --git a/res/flat-sc.yaml b/res/flat-sc.yaml new file mode 100644 index 0000000..faffe0c --- /dev/null +++ b/res/flat-sc.yaml @@ -0,0 +1,9 @@ +apiVersion: storage.k8s.io/v1 +kind: StorageClass +metadata: + name: flat-storage-class +provisioner: driver.longhorn.io +allowVolumeExpansion: true +parameters: + numberOfReplicas: '1' + staleReplicaTimeout: "2880" diff --git a/res/redundant-sc.yaml b/res/redundant-sc.yaml new file mode 100644 index 0000000..27006a0 --- /dev/null +++ b/res/redundant-sc.yaml @@ -0,0 +1,9 @@ +apiVersion: storage.k8s.io/v1 +kind: StorageClass +metadata: + name: redundant-storage-class +provisioner: driver.longhorn.io +allowVolumeExpansion: true +parameters: + numberOfReplicas: '3' + staleReplicaTimeout: "2880"