From e963ceb90eb8c9f76efc09d6c70b0aa69075347c Mon Sep 17 00:00:00 2001 From: Story Crater Bot <19826264+Riotpiaole@users.noreply.github.com> Date: Wed, 22 Jul 2026 13:26:55 -0700 Subject: [PATCH] fix(forgejo): rebuild with local storage (single pod, no Longhorn) --- k8s/security/ci-cd/forgejo-values.yaml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/k8s/security/ci-cd/forgejo-values.yaml b/k8s/security/ci-cd/forgejo-values.yaml index 63ebb13..ddaffde 100644 --- a/k8s/security/ci-cd/forgejo-values.yaml +++ b/k8s/security/ci-cd/forgejo-values.yaml @@ -75,18 +75,20 @@ gitea: serviceMonitor: enabled: true # kube-prometheus-stack discovers ServiceMonitors cluster-wide -# ── Persistence (Longhorn RWX — git repo data shared across replicas) ──────── +# ── Persistence (local/emptyDir — single pod only; no replicas) ──────── +# Longhorn RWX volume was corrupted. Rebuild with local storage. +# Once stable, can re-enable RWX and scale to replicas. persistence: enabled: true - storageClass: longhorn + storageClass: "" # empty string = local/emptyDir, no storage backend size: 20Gi accessModes: - - ReadWriteMany + - ReadWriteOnce # ── Replicas ────────────────────────────────────────────────────────────────── -# Postgres (CNPG) + Redis (session/cache/queue) + RWX storage means replicas -# no longer need to serialize on a single pod like the old SQLite setup did. -replicaCount: 2 +# Temporary: single pod with local storage while volume recovers. +# Once stable, scale back to 2+ with RWX Longhorn storage. +replicaCount: 1 # ── Deployment strategy ──────────────────────────────────────────────────────── deployment: