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"