From 92a8a9ef20f4c45d20c8dea290f69ee9e70291f5 Mon Sep 17 00:00:00 2001 From: rock Date: Sat, 12 Sep 2026 19:02:47 +0900 Subject: [PATCH] fix(ha): scale all CNPG clusters to 3 replicas, raise overprovisioning to 200% MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - authentik-db: 2 → 3 instances - gotify-db: 1 → 3 instances - longhorn storageOverProvisioningPercentage: 100 → 200 (actual disk usage ~44/474 GB on cp-1; thin provisioning is safe) Unblocks 3rd Longhorn replica scheduling on cp-1 which had DiskPressure --- k8s/apps/gotify/db.yaml | 2 +- k8s/bootstrap/phase1-storage/longhorn-values.yaml | 1 + k8s/infra/databases/authentik-db.yaml | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/k8s/apps/gotify/db.yaml b/k8s/apps/gotify/db.yaml index c1d0e4a..c581253 100644 --- a/k8s/apps/gotify/db.yaml +++ b/k8s/apps/gotify/db.yaml @@ -8,7 +8,7 @@ metadata: annotations: argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true spec: - instances: 1 + instances: 3 imageName: ghcr.io/cloudnative-pg/postgresql:16.2 bootstrap: initdb: diff --git a/k8s/bootstrap/phase1-storage/longhorn-values.yaml b/k8s/bootstrap/phase1-storage/longhorn-values.yaml index 568d482..c90d48c 100644 --- a/k8s/bootstrap/phase1-storage/longhorn-values.yaml +++ b/k8s/bootstrap/phase1-storage/longhorn-values.yaml @@ -12,6 +12,7 @@ defaultSettings: replicaSoftAntiAffinity: false # REQUIRED for true HA replicaAutoBalance: best-effort storageMinimalAvailablePercentage: 10 + storageOverProvisioningPercentage: 200 # Actual usage is ~10% of scheduled; 200% unblocks all 3-replica scheduling on cp-1 # Performance tuning defaultDataPath: /var/lib/longhorn diff --git a/k8s/infra/databases/authentik-db.yaml b/k8s/infra/databases/authentik-db.yaml index 3e366de..9b7e54a 100644 --- a/k8s/infra/databases/authentik-db.yaml +++ b/k8s/infra/databases/authentik-db.yaml @@ -9,7 +9,7 @@ metadata: annotations: argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true spec: - instances: 2 + instances: 3 imageName: ghcr.io/cloudnative-pg/postgresql:16.2 bootstrap: initdb: