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:
+13
-3
@@ -26,6 +26,7 @@ data:
|
|||||||
CREATE DATABASE invoice WITH OWNER postgres ENCODING utf8;
|
CREATE DATABASE invoice WITH OWNER postgres ENCODING utf8;
|
||||||
CREATE DATABASE notification WITH OWNER postgres ENCODING utf8;
|
CREATE DATABASE notification WITH OWNER postgres ENCODING utf8;
|
||||||
CREATE DATABASE salary 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 time WITH OWNER postgres ENCODING utf8;
|
||||||
CREATE DATABASE dancefinder WITH OWNER postgres ENCODING utf8;
|
CREATE DATABASE dancefinder WITH OWNER postgres ENCODING utf8;
|
||||||
CREATE DATABASE hifi WITH OWNER postgres ENCODING utf8;
|
CREATE DATABASE hifi WITH OWNER postgres ENCODING utf8;
|
||||||
@@ -47,13 +48,18 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: postgres
|
- name: postgres
|
||||||
image: argoyle/postgres-sv_se:15
|
image: postgres:16-alpine
|
||||||
|
args:
|
||||||
|
- -c
|
||||||
|
- shared_buffers=384MB
|
||||||
|
- -c
|
||||||
|
- max_connections=300
|
||||||
imagePullPolicy: "IfNotPresent"
|
imagePullPolicy: "IfNotPresent"
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
memory: 200Mi
|
memory: 400Mi
|
||||||
limits:
|
limits:
|
||||||
memory: 300Mi
|
memory: 600Mi
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 5432
|
- containerPort: 5432
|
||||||
env:
|
env:
|
||||||
@@ -63,6 +69,10 @@ spec:
|
|||||||
value: postgres
|
value: postgres
|
||||||
- name: POSTGRES_PASSWORD
|
- name: POSTGRES_PASSWORD
|
||||||
value: postgres
|
value: postgres
|
||||||
|
- name: LANG
|
||||||
|
value: sv_SE.utf8
|
||||||
|
- name: POSTGRES_INITDB_ARGS
|
||||||
|
value: --locale-provider=icu --icu-locale=sv-SE
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: data
|
- name: data
|
||||||
mountPath: /var/lib/postgresql/data
|
mountPath: /var/lib/postgresql/data
|
||||||
|
|||||||
Reference in New Issue
Block a user