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:
Sameer Naik
2017-03-15 11:36:45 +00:00
committed by Adnan Abdulhussein
parent 05271f145f
commit f6c53e6717
2 changed files with 13 additions and 5 deletions
+1 -1
View File
@@ -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
+12 -4
View File
@@ -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: