df687e310b
The active-active arrstack deploy (#383) was stuck: the app Deployments (wave 0) can't become Healthy without their database, so ArgoCD never advanced to wave 1 to create the shared Postgres cluster. And /config was an RWO cephrbd PVC, so 3 replicas hit Multi-Attach. - move DB infra ahead of the apps: VSS + backup ObjectStoreUser/Bucket wave -3, CNPG Cluster -2, Databases -1 (apps stay at default 0) - switch each app's /config to emptyDir (per-pod, stateless; library is in Postgres, config is env-driven; MediaCover regenerates). Old RWO config PVCs orphan.
18 lines
497 B
YAML
18 lines
497 B
YAML
---
|
|
# Per-app database owned by the radarr managed role. The fork's provider runs its
|
|
# own schema migrations on first start (advisory-locked, so only one replica
|
|
# migrates). retain: the database survives a Database CRD delete.
|
|
apiVersion: postgresql.cnpg.io/v1
|
|
kind: Database
|
|
metadata:
|
|
name: radarr-main
|
|
namespace: arrstack
|
|
annotations:
|
|
argocd.argoproj.io/sync-wave: "-1"
|
|
spec:
|
|
cluster:
|
|
name: arrstack-postgres
|
|
name: radarr-main
|
|
owner: radarr
|
|
databaseReclaimPolicy: retain
|