From efcf31b78d640406563088e448bb24934f00371b Mon Sep 17 00:00:00 2001 From: Ruben Hensen Date: Sat, 1 Mar 2025 17:25:31 +0100 Subject: [PATCH] New storageclass 3 --- apps/templates/helm-longhorn.yaml | 2 ++ longhorn/storageclass.yaml | 19 ------------------- 2 files changed, 2 insertions(+), 19 deletions(-) delete mode 100644 longhorn/storageclass.yaml diff --git a/apps/templates/helm-longhorn.yaml b/apps/templates/helm-longhorn.yaml index 0fd501b..384509e 100644 --- a/apps/templates/helm-longhorn.yaml +++ b/apps/templates/helm-longhorn.yaml @@ -19,6 +19,8 @@ spec: targetRevision: v1.7.2 # Replace with the Longhorn version you'd like to install or upgrade to helm: values: | + persistence: + defaultClassReplicaCount: 1 preUpgradeChecker: jobEnabled: false parameters: diff --git a/longhorn/storageclass.yaml b/longhorn/storageclass.yaml deleted file mode 100644 index 11c40da..0000000 --- a/longhorn/storageclass.yaml +++ /dev/null @@ -1,19 +0,0 @@ -apiVersion: storage.k8s.io/v1 -kind: StorageClass -metadata: - annotations: - storageclass.kubernetes.io/is-default-class: "true" - name: longhorn -parameters: - dataEngine: v1 - dataLocality: disabled - disableRevisionCounter: "true" - fromBackup: "" - fsType: ext4 - numberOfReplicas: "1" - staleReplicaTimeout: "30" - unmapMarkSnapChainRemoved: ignored -provisioner: driver.longhorn.io -allowVolumeExpansion: true -reclaimPolicy: Delete -volumeBindingMode: Immediate