chore(k8s): align secrets template with prod secret schema
The towerops-db secret in prod has both DATABASE_URL and individual POSTGRES_* fields; towerops-redis uses HOST/PORT/PASSWORD instead of a single REDIS_URL. Update the committed template to match so a fresh copy of k8s/secrets.example.yaml mirrors what's actually in the cluster.
This commit is contained in:
parent
32c9575952
commit
6a8ee862bd
1 changed files with 13 additions and 5 deletions
|
|
@ -40,10 +40,15 @@ metadata:
|
||||||
namespace: towerops
|
namespace: towerops
|
||||||
type: Opaque
|
type: Opaque
|
||||||
stringData:
|
stringData:
|
||||||
# Full ecto:// URL — used envFrom in the deployment.
|
# Full ecto:// URL — what runtime.exs reads.
|
||||||
DATABASE_URL: "ecto://USER:PASSWORD@HOST:5432/DATABASE"
|
DATABASE_URL: "ecto://USER:PASSWORD@HOST:5432/DATABASE"
|
||||||
# Optional pool tuning (defaults applied in runtime.exs if unset)
|
# The individual fields are convenience for ops — not required by the
|
||||||
POOL_SIZE: ""
|
# app but kept here for parity with the existing prod secret.
|
||||||
|
POSTGRES_HOST: ""
|
||||||
|
POSTGRES_PORT: "5432"
|
||||||
|
POSTGRES_DB: ""
|
||||||
|
POSTGRES_USER: ""
|
||||||
|
POSTGRES_PASSWORD: ""
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Secret
|
kind: Secret
|
||||||
|
|
@ -63,8 +68,11 @@ metadata:
|
||||||
namespace: towerops
|
namespace: towerops
|
||||||
type: Opaque
|
type: Opaque
|
||||||
stringData:
|
stringData:
|
||||||
# envFrom block injects whatever keys exist here.
|
# K8s pattern — runtime.exs builds the connection from these
|
||||||
REDIS_URL: "redis://HOST:6379/0"
|
# individual fields. Dokku alternative is REDIS_URL.
|
||||||
|
REDIS_HOST: ""
|
||||||
|
REDIS_PORT: "6379"
|
||||||
|
REDIS_PASSWORD: ""
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Secret
|
kind: Secret
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue