fix(k8s): add datasource/kafka/redis config to k8s profile
K8s profile relied on shared/dev defaults for spring.datasource.url, but those live inside the dev profile block — invisible when k8s profile is active. Result: 'APPLICATION FAILED TO START — Failed to configure a DataSource'. Move full datasource (and kafka/redis for projection-writer) wiring into the k8s profile section. ENV vars come from Vault Agent injector (ORDINIS_PG_USER/PASSWORD, ORDINIS_KAFKA_USER/PASSWORD, ORDINIS_REDIS_PASSWORD) and chart-supplied ENV (ORDINIS_PG_HOST, ORDINIS_KAFKA_BOOTSTRAP, etc).
This commit is contained in:
@@ -111,6 +111,10 @@ spring:
|
||||
backend: secret
|
||||
application-name: ordinis/cuod
|
||||
datasource:
|
||||
url: jdbc:postgresql://${ORDINIS_PG_HOST}:${ORDINIS_PG_PORT:5432}/${ORDINIS_PG_DB:ordinis}
|
||||
username: ${ORDINIS_PG_USER}
|
||||
password: ${ORDINIS_PG_PASSWORD}
|
||||
driver-class-name: org.postgresql.Driver
|
||||
hikari:
|
||||
read-only: true
|
||||
jpa:
|
||||
|
||||
Reference in New Issue
Block a user