apiVersion: v1
kind: ConfigMap
metadata:
  name: cm-user-service
data:
  # Server Configuration
  SERVER_PORT: "8081"

  # Database Configuration
  DB_URL: "jdbc:postgresql://user-postgresql:5432/userdb"
  DB_HOST: "user-postgresql"
  DB_PORT: "5432"
  DB_NAME: "userdb"
  DB_USERNAME: "eventuser"
  DB_DRIVER: "org.postgresql.Driver"
  DB_KIND: "postgresql"
  DB_POOL_MAX: "20"
  DB_POOL_MIN: "5"
  DB_CONN_TIMEOUT: "30000"
  DB_IDLE_TIMEOUT: "600000"
  DB_MAX_LIFETIME: "1800000"
  DB_LEAK_THRESHOLD: "60000"

  # Redis Configuration (service-specific)
  REDIS_DATABASE: "0"

  # Kafka Configuration (service-specific)
  KAFKA_CONSUMER_GROUP: "user-service-consumers"

  # Logging Configuration
  LOG_FILE_PATH: "logs/user-service.log"
