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: persistence:
storageClass: local-path storageClass: local-path
size: 20Gi 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: nodeSelector:
dedicated: db dedicated: db
tolerations: tolerations:
@ -53,8 +87,8 @@ spec:
effect: NoSchedule effect: NoSchedule
contour: contour:
enabled: true enabled: true
adminUser: "sarex" adminUser: ""
adminPasswordSecretKey: "user-password" adminPasswordSecretKey: ""
sharedPreloadLibraries: "timescaledb,pg_stat_statements" sharedPreloadLibraries: "timescaledb,pg_stat_statements"
databases: databases:
- name: sarex_db - name: sarex_db