Files
platform-core/services/platform-postgres/base/cluster.yaml
T
DongHyeonka 388eb74d4c revert(platform-postgres): hand the tech-log pg_hba fix to W1
This reverts commit 1c4ef9a.

W1 owns the CNPG backup work, which changes the same Cluster manifest
(services/platform-postgres/base/cluster.yaml). The program rule is that
another session does not edit files in W1's scope; overlaps are recorded
as findings and handed over. The drift itself is unchanged: the live
Cluster still has two techlog pg_hba rules the repository does not
declare, so applying the current render would cut the production
backend off its database. The exact change, its render invariants and
the RED/GREEN evidence are in the maturity review, section 6.

Verification: git diff origin/main...HEAD no longer lists any
services/platform-postgres or scripts/validate/render-phase1.sh path.
2026-11-11 23:43:37 +09:00

47 lines
940 B
YAML

apiVersion: postgresql.cnpg.io/v1
kind: Cluster
metadata:
name: platform-postgres
labels:
app.kubernetes.io/name: platform-postgres
app.kubernetes.io/component: database
spec:
description: Shared platform PostgreSQL instance initialized for Gitea
instances: 1
imageName: ghcr.io/cloudnative-pg/postgresql:17.9-standard-trixie
bootstrap:
initdb:
dataChecksums: true
database: gitea
owner: gitea
secret:
name: gitea-db-credentials
postgresql:
pg_hba:
- host gitea gitea all scram-sha-256
- host all gitea all reject
- host keycloak keycloak all scram-sha-256
- host all keycloak all reject
storage:
size: 20Gi
managed:
services:
disabledDefaultServices:
- ro
- r
affinity:
enablePodAntiAffinity: false
resources:
requests:
cpu: 250m
memory: 512Mi
limits:
cpu: "2"
memory: 4Gi