feat(db): update postgres configuration

Increase memory limits and adjust postgres image version.
Add Swedish locale settings and create a new database for supplier.
This commit is contained in:
2024-04-25 13:54:32 +02:00
parent 727132cbbe
commit e655a4f761
+13 -3
View File
@@ -26,6 +26,7 @@ data:
CREATE DATABASE invoice WITH OWNER postgres ENCODING utf8;
CREATE DATABASE notification WITH OWNER postgres ENCODING utf8;
CREATE DATABASE salary WITH OWNER postgres ENCODING utf8;
CREATE DATABASE supplier WITH OWNER postgres ENCODING utf8;
CREATE DATABASE time WITH OWNER postgres ENCODING utf8;
CREATE DATABASE dancefinder WITH OWNER postgres ENCODING utf8;
CREATE DATABASE hifi WITH OWNER postgres ENCODING utf8;
@@ -47,13 +48,18 @@ spec:
spec:
containers:
- name: postgres
image: argoyle/postgres-sv_se:15
image: postgres:16-alpine
args:
- -c
- shared_buffers=384MB
- -c
- max_connections=300
imagePullPolicy: "IfNotPresent"
resources:
requests:
memory: 200Mi
memory: 400Mi
limits:
memory: 300Mi
memory: 600Mi
ports:
- containerPort: 5432
env:
@@ -63,6 +69,10 @@ spec:
value: postgres
- name: POSTGRES_PASSWORD
value: postgres
- name: LANG
value: sv_SE.utf8
- name: POSTGRES_INITDB_ARGS
value: --locale-provider=icu --icu-locale=sv-SE
volumeMounts:
- name: data
mountPath: /var/lib/postgresql/data