[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.url=jdbc:postgresql://${DB_HOST}:${DB_PORT}/${DB_NAME}
spring.datasource.username= ${DB_USER} spring.datasource.username= ${DB_USER}
spring.datasource.password= ${DB_PASS} spring.datasource.password= ${DB_PASS}
spring.datasource.hikari.maximum-pool-size=${hikariPoolSize}
spring.jpa.hibernate.default_schema=abstracto spring.jpa.hibernate.default_schema=abstracto
spring.jpa.properties.hibernate.default_schema=abstracto spring.jpa.properties.hibernate.default_schema=abstracto
spring.quartz.jdbc.initialize-schema=never spring.quartz.jdbc.initialize-schema=never

View File

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

View File

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