URL-5 Added Kubernetes manifests, services and deployments. Also included Ingress and namespace and service configs.

This commit is contained in:
LenaGmbh
2026-01-07 16:21:29 +01:00
parent 22bb61abac
commit 0d02f3e8aa
14 changed files with 562 additions and 0 deletions

View 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"