feat(db): update postgres configuration #3

Merged
argoyle merged 1 commits from update-postgres-configurations-branch into main 2024-04-25 11:56:25 +00:00
+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