From 6416e643a34675ceb8199162ebc03623a9386998 Mon Sep 17 00:00:00 2001 From: Melvin GABALI Date: Wed, 14 Jan 2026 10:37:35 +0100 Subject: [PATCH] update replicat --- helm/homarr/dev/values.yaml | 3 ++- helm/longhorn/dev/values.yaml | 34 ++++++++++++++++++++-------------- 2 files changed, 22 insertions(+), 15 deletions(-) diff --git a/helm/homarr/dev/values.yaml b/helm/homarr/dev/values.yaml index da18f5e..562c885 100644 --- a/helm/homarr/dev/values.yaml +++ b/helm/homarr/dev/values.yaml @@ -26,7 +26,8 @@ homarr: # -- homarr-database persistent storage name name: "homarr-database" # -- homarr-database storage class name - storageClassName: "local-path" + # Utilisation de Longhorn au lieu de local-path (qui n'existe pas) + storageClassName: "longhorn" # -- homarr-database access mode accessMode: "ReadWriteOnce" # -- homarr-database storage size diff --git a/helm/longhorn/dev/values.yaml b/helm/longhorn/dev/values.yaml index 55e2ce0..ca8a09d 100644 --- a/helm/longhorn/dev/values.yaml +++ b/helm/longhorn/dev/values.yaml @@ -6,19 +6,6 @@ longhorn: ui: enabled: true - # Persistence - defaultSettings: - defaultDataPath: /var/lib/longhorn - defaultDiskSelector: "" - defaultDataLocality: "best-effort" - defaultClassReplicaCount: 1 - # -- Permet de monter le volume même si 1 seul réplica est disponible - allowVolumeCreationWithDegradedAvailability: true - # -- Nombre de réplicas par défaut pour l'UI (si vous créez des volumes manuellement) - defaultReplicaCount: 1 - # -- Autorise plusieurs réplicas sur le même nœud/disque (essentiel pour 1 seul nœud) - replicaSoftAntiAffinity: true - # RBAC et service accounts (Helm gère par défaut) rbac: create: true @@ -44,4 +31,23 @@ longhorn: ingress: enabled: true host: longhorn.dev.gkdomaine.local - pathType: Prefix \ No newline at end of file + pathType: Prefix + + # Persistence + persistence: + # Créer la StorageClass Longhorn et la définir comme par défaut + # Nécessaire pour que les PVC puissent se lier aux volumes + defaultClass: true + defaultClassReplicaCount: 1 + + defaultSettings: + defaultDataPath: /var/lib/longhorn + defaultDiskSelector: "" + defaultDataLocality: "best-effort" + defaultClassReplicaCount: 1 + # -- Permet de monter le volume même si 1 seul réplica est disponible + allowVolumeCreationWithDegradedAvailability: true + # -- Nombre de réplicas par défaut pour l'UI (si vous créez des volumes manuellement) + defaultReplicaCount: 1 + # -- Autorise plusieurs réplicas sur le même nœud/disque (essentiel pour 1 seul nœud) + replicaSoftAntiAffinity: true \ No newline at end of file