8446c31414
## Why The active-active arrstack deploy (#383) is stuck in-cluster: the app Deployments (sync-wave 0) can never become Healthy without their Postgres DB, so ArgoCD never advances to create the shared `arrstack-postgres` cluster (wave 1). Separately, `/config` is an immutable RWO cephrbd PVC, so 3 replicas fail with Multi-Attach. ## How - Order DB infra before the apps: `<app>-db` VaultStaticSecrets + backup ObjectStoreUser/Bucket at sync-wave -3, CNPG `Cluster` -2, `Database` CRDs -1; app Deployments stay at default 0. - Switch each app's `/config` to an emptyDir per-pod volume (library DB is in Postgres, config is env-driven; MediaCover regenerates). Old RWO config PVCs orphan. Validated with kustomize build (62 resources). arrproxy/nzbget untouched. Reviewed-on: #385 Co-authored-by: unkin-agent <unkin-agent@unkin.net> Co-committed-by: unkin-agent <unkin-agent@unkin.net>
16 lines
443 B
YAML
16 lines
443 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
|
|
spec:
|
|
cluster:
|
|
name: arrstack-postgres
|
|
name: radarr-main
|
|
owner: radarr
|
|
databaseReclaimPolicy: retain
|