Create production PostgreSQL cluster via CNPG (3-node HA, Longhorn storage). Schema initialization Job creates schemas for: - Authentik (identity provider) - Temporal (workflow engine) - Vault (secrets management) - App (generic application databases) Database layer now captures complete IaC for stateful infrastructure. Services find ready schemas when deployed.
16 lines
404 B
YAML
16 lines
404 B
YAML
apiVersion: kustomize.config.k8s.io/v1beta1
|
|
kind: Kustomization
|
|
metadata:
|
|
name: data
|
|
|
|
# Layer 6: Data — stateful services (databases, message brokers)
|
|
# Dependencies: all previous layers (bootstrap, platform, etc.)
|
|
# Order: Applied last
|
|
|
|
# PostgreSQL cluster + schema initialization
|
|
# Required by: Authentik, Temporal, Vault, SQS
|
|
resources:
|
|
- ddb-cluster.yaml
|
|
- schemas.yaml
|
|
- db-init-job.yaml
|