[SIS-xxx] enabling external configuration of db pool size

This commit is contained in:
Sheldan
2023-11-14 23:39:52 +01:00
parent 30289e1166
commit 7b11a88256
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

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

View File

@@ -17,6 +17,8 @@ bot:
initialDelaySeconds: 60
periodSeconds: 5
failureThreshold: 3
propertyConfig:
hikariPoolSize: 10
templateDeployment:
enabled: true