60309fc5c2
Per review: drop the ArgoCD sync-wave annotations (their health-gating is what deadlocked the first deploy) and instead add a wait-for-db init container to each app that blocks until its own Postgres database+role is reachable (libpq PG* env, password never in argv). ArgoCD applies everything at once; the app container only starts once its DB is ready.
16 lines
443 B
YAML
16 lines
443 B
YAML
---
|
|
# Per-app database owned by the sonarr 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: sonarr-main
|
|
namespace: arrstack
|
|
spec:
|
|
cluster:
|
|
name: arrstack-postgres
|
|
name: sonarr-main
|
|
owner: sonarr
|
|
databaseReclaimPolicy: retain
|