mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
postgres: lower initialDelay and timeout for readiness probe (#318)
* [stable/postgresql] lower initialDelaySeconds of readiness probe updated health probes to test postgres connection with POD_IP * postgresql: adjust probe timeouts
This commit is contained in:
committed by
Adnan Abdulhussein
parent
05271f145f
commit
f6c53e6717
@@ -1,5 +1,5 @@
|
||||
name: postgresql
|
||||
version: 0.5.0
|
||||
version: 0.5.1
|
||||
description: Object-relational database management system (ORDBMS) with an emphasis on extensibility and on standards-compliance.
|
||||
keywords:
|
||||
- postgresql
|
||||
|
||||
@@ -32,21 +32,29 @@ spec:
|
||||
secretKeyRef:
|
||||
name: {{ template "fullname" . }}
|
||||
key: postgres-password
|
||||
- name: POD_IP
|
||||
valueFrom: { fieldRef: { fieldPath: status.podIP } }
|
||||
ports:
|
||||
- name: postgresql
|
||||
containerPort: 5432
|
||||
livenessProbe:
|
||||
exec:
|
||||
command:
|
||||
- pg_isready
|
||||
- sh
|
||||
- -c
|
||||
- exec pg_isready --host $POD_IP
|
||||
initialDelaySeconds: 60
|
||||
timeoutSeconds: 3
|
||||
timeoutSeconds: 5
|
||||
failureThreshold: 6
|
||||
readinessProbe:
|
||||
exec:
|
||||
command:
|
||||
- pg_isready
|
||||
initialDelaySeconds: 60
|
||||
- sh
|
||||
- -c
|
||||
- exec pg_isready --host $POD_IP
|
||||
initialDelaySeconds: 5
|
||||
timeoutSeconds: 3
|
||||
periodSeconds: 5
|
||||
resources:
|
||||
{{ toYaml .Values.resources | indent 10 }}
|
||||
volumeMounts:
|
||||
|
||||
Reference in New Issue
Block a user