fix postgresql bootstrap

This commit is contained in:
Kochetkov S 2026-04-10 16:18:04 +03:00
parent bac35da51a
commit cf9fb03591

View File

@ -44,6 +44,40 @@ spec:
persistence:
storageClass: local-path
size: 20Gi
customLivenessProbe:
exec:
command:
- /bin/sh
- -c
- exec pg_isready -U "sarex" -d postgres -h 127.0.0.1 -p 5432
initialDelaySeconds: 30
periodSeconds: 10
timeoutSeconds: 5
successThreshold: 1
failureThreshold: 6
customReadinessProbe:
exec:
command:
- /bin/sh
- -c
- -e
- exec pg_isready -U "sarex" -d postgres -h 127.0.0.1 -p 5432
initialDelaySeconds: 5
periodSeconds: 10
timeoutSeconds: 5
successThreshold: 1
failureThreshold: 6
customStartupProbe:
exec:
command:
- /bin/sh
- -c
- exec pg_isready -U "sarex" -d postgres -h 127.0.0.1 -p 5432
initialDelaySeconds: 30
periodSeconds: 10
timeoutSeconds: 5
successThreshold: 1
failureThreshold: 6
nodeSelector:
dedicated: db
tolerations:
@ -53,8 +87,8 @@ spec:
effect: NoSchedule
contour:
enabled: true
adminUser: "sarex"
adminPasswordSecretKey: "user-password"
adminUser: ""
adminPasswordSecretKey: ""
sharedPreloadLibraries: "timescaledb,pg_stat_statements"
databases:
- name: sarex_db