fix(data-service): inject REDIS_URL from ConfigMap
- Add REDIS_URL env var using variable expansion from the existing trading-data-service-config ConfigMap (REDIS_HOST + REDIS_PORT). - This resolves the 'connecting to localhost:6379' crash on startup. - Matches the actual infrastructure configuration in customer1.
This commit is contained in:
parent
53ae85910d
commit
1d2d016eda
1 changed files with 2 additions and 0 deletions
|
|
@ -48,6 +48,8 @@ spec:
|
||||||
- configMapRef:
|
- configMapRef:
|
||||||
name: trading-data-service-config
|
name: trading-data-service-config
|
||||||
env:
|
env:
|
||||||
|
- name: REDIS_URL
|
||||||
|
value: "redis://$(REDIS_HOST):$(REDIS_PORT)/0"
|
||||||
- name: DB_USER
|
- name: DB_USER
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue