Update config to use env variables

This commit is contained in:
Agent
2026-03-20 15:13:39 +00:00
parent fe66d197aa
commit b145f708cf
2 changed files with 33 additions and 14 deletions

View File

@@ -4,10 +4,12 @@ metadata:
name: todo-config
namespace: todo-test
data:
DATABASE_URL: "jdbc:postgresql://todo-postgres:5432/building_materials"
DATABASE_USERNAME: "postgres"
REDIS_HOST: "todo-redis"
REDIS_PORT: "6379"
SPRING_DATASOURCE_HOST: "todo-postgres"
SPRING_DATASOURCE_PORT: "5432"
SPRING_DATASOURCE_DB: "building_materials"
SPRING_DATASOURCE_USERNAME: "postgres"
SPRING_REDIS_HOST: "todo-redis"
SPRING_REDIS_PORT: "6379"
API_BASE_URL: "http://todo-backend:8080"
---
apiVersion: v1
@@ -16,8 +18,10 @@ metadata:
name: todo-config
namespace: todo-prod
data:
DATABASE_URL: "jdbc:postgresql://todo-postgres:5432/building_materials"
DATABASE_USERNAME: "postgres"
REDIS_HOST: "todo-redis"
REDIS_PORT: "6379"
SPRING_DATASOURCE_HOST: "todo-postgres"
SPRING_DATASOURCE_PORT: "5432"
SPRING_DATASOURCE_DB: "building_materials"
SPRING_DATASOURCE_USERNAME: "postgres"
SPRING_REDIS_HOST: "todo-redis"
SPRING_REDIS_PORT: "6379"
API_BASE_URL: "http://todo-backend:8080"