29 lines
988 B
YAML
29 lines
988 B
YAML
# Wave 2 — dedicated per-app CNPG Postgres clusters (authentik-db → ns iam,
|
|
# temporal-db + visibility → ns temporal). ONE App, ONE folder (k8s/infra/databases).
|
|
# CNPG operator is Phase-0 bootstrap; these Cluster CRs are GitOps — no circular
|
|
# dep (they run after ArgoCD is up, before their apps at w3/w8). CNPG generates
|
|
# each cluster's `<name>-app` secret + `<name>-rw` service in-namespace; the apps
|
|
# read them locally. Forgejo's DB stays separate (bootstrap/circular).
|
|
apiVersion: argoproj.io/v1alpha1
|
|
kind: Application
|
|
metadata:
|
|
name: databases
|
|
namespace: argocd
|
|
annotations:
|
|
argocd.argoproj.io/sync-wave: "2"
|
|
spec:
|
|
project: homelab
|
|
source:
|
|
repoURL: https://forgejo.riotpiao.com/riotpiao.com/homelab.git
|
|
targetRevision: main
|
|
path: k8s/infra/databases
|
|
destination:
|
|
server: https://kubernetes.default.svc
|
|
namespace: default
|
|
syncPolicy:
|
|
automated:
|
|
prune: true
|
|
selfHeal: true
|
|
syncOptions:
|
|
- ServerSideApply=true
|