mirror of
https://github.com/Sheldan/OnePlusBot.git
synced 2026-01-02 23:57:14 +00:00
[OPB-xxx] enabling to configure database pool sizes externally
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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 }}
|
||||||
|
|||||||
@@ -19,6 +19,8 @@ bot:
|
|||||||
failureThreshold: 3
|
failureThreshold: 3
|
||||||
config:
|
config:
|
||||||
newsForumPostNotificationServerId:
|
newsForumPostNotificationServerId:
|
||||||
|
propertyConfig:
|
||||||
|
hikariPoolSize: 10
|
||||||
|
|
||||||
templateDeployment:
|
templateDeployment:
|
||||||
enabled: true
|
enabled: true
|
||||||
|
|||||||
Reference in New Issue
Block a user