URL-5 Added Kubernetes manifests, services and deployments. Also included Ingress and namespace and service configs.
This commit is contained in:
24
k8s/base/configmaps/database-config.yaml
Normal file
24
k8s/base/configmaps/database-config.yaml
Normal file
@@ -0,0 +1,24 @@
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: database-config
|
||||
namespace: urlshortener
|
||||
labels:
|
||||
app: urlshortener
|
||||
data:
|
||||
# PostgreSQL connection settings
|
||||
# These will be used by services that need database access
|
||||
# Note: Password should be set via secret: urlshortener-secrets (database-password key)
|
||||
spring.r2dbc.url: "r2dbc:postgresql://postgres:5432/urlshortener"
|
||||
spring.r2dbc.username: "urlshortener"
|
||||
# Password is loaded from secret: urlshortener-secrets.database-password
|
||||
|
||||
# Connection pool settings
|
||||
spring.r2dbc.pool.initial-size: "5"
|
||||
spring.r2dbc.pool.max-size: "20"
|
||||
spring.r2dbc.pool.max-idle-time: "30m"
|
||||
|
||||
# Database migration (if using Flyway or Liquibase)
|
||||
spring.flyway.enabled: "true"
|
||||
spring.flyway.baseline-on-migrate: "true"
|
||||
|
||||
Reference in New Issue
Block a user