fix(forgejo): rebuild with local storage (single pod, no Longhorn)
This commit is contained in:
@@ -75,18 +75,20 @@ gitea:
|
|||||||
serviceMonitor:
|
serviceMonitor:
|
||||||
enabled: true # kube-prometheus-stack discovers ServiceMonitors cluster-wide
|
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:
|
persistence:
|
||||||
enabled: true
|
enabled: true
|
||||||
storageClass: longhorn
|
storageClass: "" # empty string = local/emptyDir, no storage backend
|
||||||
size: 20Gi
|
size: 20Gi
|
||||||
accessModes:
|
accessModes:
|
||||||
- ReadWriteMany
|
- ReadWriteOnce
|
||||||
|
|
||||||
# ── Replicas ──────────────────────────────────────────────────────────────────
|
# ── Replicas ──────────────────────────────────────────────────────────────────
|
||||||
# Postgres (CNPG) + Redis (session/cache/queue) + RWX storage means replicas
|
# Temporary: single pod with local storage while volume recovers.
|
||||||
# no longer need to serialize on a single pod like the old SQLite setup did.
|
# Once stable, scale back to 2+ with RWX Longhorn storage.
|
||||||
replicaCount: 2
|
replicaCount: 1
|
||||||
|
|
||||||
# ── Deployment strategy ────────────────────────────────────────────────────────
|
# ── Deployment strategy ────────────────────────────────────────────────────────
|
||||||
deployment:
|
deployment:
|
||||||
|
|||||||
Reference in New Issue
Block a user