From 3d137ddb497b208261e8ce31a6ebf5b35dd2c19d Mon Sep 17 00:00:00 2001 From: Martyn Ranyard Date: Wed, 14 Feb 2024 17:53:32 +0100 Subject: [PATCH] my storageclasses, not default Signed-off-by: Martyn Ranyard --- .../longhorn-storageclasses/fast.yaml | 10 ++++++++++ .../longhorn-storageclasses/spinny.yaml | 10 ++++++++++ everything-app/longhorn-storageclasses.yaml | 17 +++++++++++++++++ 3 files changed, 37 insertions(+) create mode 100644 apps-kustomized/longhorn-storageclasses/fast.yaml create mode 100644 apps-kustomized/longhorn-storageclasses/spinny.yaml create mode 100644 everything-app/longhorn-storageclasses.yaml diff --git a/apps-kustomized/longhorn-storageclasses/fast.yaml b/apps-kustomized/longhorn-storageclasses/fast.yaml new file mode 100644 index 0000000..af2da9a --- /dev/null +++ b/apps-kustomized/longhorn-storageclasses/fast.yaml @@ -0,0 +1,10 @@ +kind: StorageClass +apiVersion: storage.k8s.io/v1 +metadata: + name: longhorn-fast +provisioner: driver.longhorn.io +parameters: + allowVolumeExpansion: "true" + numberOfReplicas: "2" + staleReplicaTimeout: "480" # 8 hours in minutes + diskSelector: "ssd" diff --git a/apps-kustomized/longhorn-storageclasses/spinny.yaml b/apps-kustomized/longhorn-storageclasses/spinny.yaml new file mode 100644 index 0000000..3f63f40 --- /dev/null +++ b/apps-kustomized/longhorn-storageclasses/spinny.yaml @@ -0,0 +1,10 @@ +kind: StorageClass +apiVersion: storage.k8s.io/v1 +metadata: + name: longhorn-spinny +provisioner: driver.longhorn.io +parameters: + allowVolumeExpansion: "true" + numberOfReplicas: "2" + staleReplicaTimeout: "480" # 8 hours in minutes + diskSelector: "spinny" diff --git a/everything-app/longhorn-storageclasses.yaml b/everything-app/longhorn-storageclasses.yaml new file mode 100644 index 0000000..fd155a8 --- /dev/null +++ b/everything-app/longhorn-storageclasses.yaml @@ -0,0 +1,17 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: longhorn-storageclasses + namespace: argocd +spec: + destination: + namespace: longhorn-storageclasses + server: https://kubernetes.default.svc + project: infra + source: + path: apps-kustomized/longhorn-storageclasses + repoURL: https://git.martyn.berlin/martyn/infra4talos + targetRevision: HEAD + syncPolicy: + automated: + selfHeal: true