REFACTOR(db): migrate to CloudNativePG database

- Migrate database to CloudNativePG operator
- Update connection configuration
This commit is contained in:
2025-12-27 18:43:36 +09:00
parent 642b725aa3
commit 9220934803
2 changed files with 4 additions and 4 deletions

View File

@@ -41,12 +41,12 @@ spec:
value: "https://api.groq.com/openai/v1"
# Chainlit uses asyncpg directly (not SQLAlchemy)
- name: CHAINLIT_DATABASE_URL
value: "postgresql://bluemayne:$(POSTGRES_PASSWORD)@postgresql-primary.postgresql.svc.cluster.local:5432/mas"
value: "postgresql://bluemayne:$(POSTGRES_PASSWORD)@postgresql-cnpg-rw.postgresql-cnpg.svc.cluster.local:5432/mas"
# SQLAlchemy format (if needed)
- name: DATABASE_URL
value: "postgresql://bluemayne:$(POSTGRES_PASSWORD)@postgresql-primary.postgresql.svc.cluster.local:5432/mas"
value: "postgresql://bluemayne:$(POSTGRES_PASSWORD)@postgresql-cnpg-rw.postgresql-cnpg.svc.cluster.local:5432/mas"
- name: POSTGRES_HOST
value: "postgresql-primary.postgresql.svc.cluster.local"
value: "postgresql-cnpg-rw.postgresql-cnpg.svc.cluster.local"
- name: POSTGRES_PORT
value: "5432"
- name: POSTGRES_USER