Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions config/env/dev.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,14 @@ SQL_PASSWORD=balancer

# Connection Type Examples:
#
# CloudNativePG (Kubernetes service within cluster):
# SQL_HOST=balancer-postgres-rw
# SQL_HOST=balancer-postgres-rw.balancer.svc.cluster.local
# CloudNativePG (primary — Philthy Civic Cloud shared cluster):
# SQL_HOST=shared-cluster-rw.cloudnative-pg.svc.cluster.local
# SQL_DATABASE=balancer
# (SSL typically not required within cluster)
#
# AWS RDS (External database):
# AWS RDS (legacy — for migration contexts):
# SQL_HOST=balancer-db.xxxxx.us-east-1.rds.amazonaws.com
# SQL_DATABASE=balancer_dev
# (SSL typically required - set SQL_SSL_MODE if needed)
#
# Local development:
Expand Down
9 changes: 7 additions & 2 deletions deploy/manifests/balancer/base/secret.template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
# repository. Secrets should be created in each target cluster using cluster-specific
# tools (e.g., SealedSecrets in the cfp-sandbox-cluster).
#
# CloudNativePG is the primary database target (Philthy Civic Cloud shared cluster).
# AWS RDS was used previously and may still be referenced for migration contexts.
#
apiVersion: v1
kind: Secret
metadata:
Expand All @@ -20,8 +23,10 @@ stringData:
REACT_APP_API_BASE_URL: https://balancer.sandbox.k8s.phl.io/
SECRET_KEY: randomly_generated_key_ere
SQL_ENGINE: django.db.backends.postgresql
SQL_HOST: sql_host_here
# CloudNativePG (primary): shared-cluster-rw.cloudnative-pg.svc.cluster.local
# AWS RDS (legacy): balancer-db.xxxxx.us-east-1.rds.amazonaws.com
SQL_HOST: shared-cluster-rw.cloudnative-pg.svc.cluster.local
SQL_PORT: '5432'
SQL_DATABASE: balancer_dev
SQL_DATABASE: balancer
SQL_USER: balancer
SQL_PASSWORD: sql_password_here
Loading