Fix DB pod
This commit is contained in:
parent
2c8dc8de71
commit
5d1b32d7c6
@ -72,22 +72,39 @@ spec:
|
|||||||
mountPath: /docker-entrypoint-initdb.d
|
mountPath: /docker-entrypoint-initdb.d
|
||||||
resources:
|
resources:
|
||||||
{{- toYaml .Values.postgres.resources | nindent 12 }}
|
{{- toYaml .Values.postgres.resources | nindent 12 }}
|
||||||
|
# Health probes aligned with tasko-chart approach
|
||||||
|
# Use TCP localhost instead of Unix socket to avoid permission issues
|
||||||
|
# Fixed shell variable expansion: $POSTGRES_USER not $(POSTGRES_USER)
|
||||||
|
startupProbe:
|
||||||
|
exec:
|
||||||
|
command:
|
||||||
|
- sh
|
||||||
|
- -c
|
||||||
|
- pg_isready -h 127.0.0.1 -p 5432 -U "$POSTGRES_USER"
|
||||||
|
initialDelaySeconds: 10
|
||||||
|
periodSeconds: 5
|
||||||
|
timeoutSeconds: 5
|
||||||
|
failureThreshold: 30 # Allow up to 150s for slow NFS startup
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
exec:
|
exec:
|
||||||
command:
|
command:
|
||||||
- sh
|
- sh
|
||||||
- -c
|
- -c
|
||||||
- pg_isready -U $(POSTGRES_USER) -h /var/run/postgresql
|
- pg_isready -h 127.0.0.1 -p 5432 -U "$POSTGRES_USER"
|
||||||
initialDelaySeconds: 30
|
initialDelaySeconds: 30
|
||||||
periodSeconds: 10
|
periodSeconds: 10
|
||||||
|
timeoutSeconds: 5
|
||||||
|
failureThreshold: 3
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
exec:
|
exec:
|
||||||
command:
|
command:
|
||||||
- sh
|
- sh
|
||||||
- -c
|
- -c
|
||||||
- pg_isready -U $(POSTGRES_USER) -h /var/run/postgresql
|
- pg_isready -h 127.0.0.1 -p 5432 -U "$POSTGRES_USER"
|
||||||
initialDelaySeconds: 5
|
initialDelaySeconds: 5
|
||||||
periodSeconds: 5
|
periodSeconds: 5
|
||||||
|
timeoutSeconds: 3
|
||||||
|
failureThreshold: 3
|
||||||
volumes:
|
volumes:
|
||||||
- name: init-script
|
- name: init-script
|
||||||
configMap:
|
configMap:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user