2023-01-25 20:27:27 +01:00
|
|
|
- op: add
|
|
|
|
path: "/spec/template/spec/containers/0/env/-"
|
|
|
|
value:
|
|
|
|
name: HYDRA_DATABASE_USER
|
|
|
|
valueFrom:
|
|
|
|
secretKeyRef:
|
2024-09-26 09:50:54 +02:00
|
|
|
name: hydra-postgres-app
|
2023-01-25 20:27:27 +01:00
|
|
|
key: username
|
|
|
|
- op: add
|
|
|
|
path: "/spec/template/spec/containers/0/env/-"
|
|
|
|
value:
|
|
|
|
name: HYDRA_DATABASE_PASSWORD
|
|
|
|
valueFrom:
|
|
|
|
secretKeyRef:
|
2024-09-26 09:50:54 +02:00
|
|
|
name: hydra-postgres-app
|
2023-01-25 20:27:27 +01:00
|
|
|
key: password
|
2024-09-26 09:50:54 +02:00
|
|
|
- op: add
|
|
|
|
path: "/spec/template/spec/containers/0/env/-"
|
|
|
|
value:
|
|
|
|
name: HYDRA_DATABASE_SERVICE_NAME
|
2024-10-04 10:01:55 +02:00
|
|
|
valueFrom:
|
|
|
|
secretKeyRef:
|
|
|
|
name: hydra-postgres-app
|
|
|
|
key: host
|
2023-01-25 20:27:27 +01:00
|
|
|
- op: add
|
|
|
|
path: "/spec/template/spec/containers/0/env/-"
|
|
|
|
value:
|
|
|
|
name: DSN
|
2024-10-04 10:01:55 +02:00
|
|
|
value: "postgres://$(HYDRA_DATABASE_USER):$(HYDRA_DATABASE_PASSWORD)@$(HYDRA_DATABASE_SERVICE_NAME):5432/hydra?sslmode=disable&max_conn=$(HYDRA_DATABASE_MAX_CONN)"
|