[OPB-xxx] enabling to configure database pool sizes externally

This commit is contained in:
Sheldan
2023-11-14 23:22:13 +01:00
parent ae88377d30
commit 17e24b14f4
3 changed files with 7 additions and 0 deletions

View File

@@ -1,6 +1,7 @@
spring.datasource.url=jdbc:postgresql://${DB_HOST}:${DB_PORT}/${DB_NAME}
spring.datasource.username= ${DB_USER}
spring.datasource.password= ${DB_PASS}
spring.datasource.hikari.maximum-pool-size=${hikariPoolSize}
spring.jpa.hibernate.default_schema=abstracto
spring.jpa.properties.hibernate.default_schema=abstracto
spring.quartz.jdbc.initialize-schema=never

View File

@@ -71,6 +71,10 @@ spec:
secretKeyRef:
name: api-keys
key: youtubeApiKey
{{- range $key, $value := .Values.bot.propertyConfig }}
- name: {{ $key | quote }}
value: {{ $value | quote}}
{{- end }}
ports:
- name: http
containerPort: {{ .Values.service.port }}

View File

@@ -19,6 +19,8 @@ bot:
failureThreshold: 3
config:
newsForumPostNotificationServerId:
propertyConfig:
hikariPoolSize: 10
templateDeployment:
enabled: true