diff --git a/postgresql/Chart.yaml b/postgresql/Chart.yaml index 278027038..9ba8533d7 100644 --- a/postgresql/Chart.yaml +++ b/postgresql/Chart.yaml @@ -15,7 +15,7 @@ apiVersion: v1 appVersion: v9.6 description: OpenStack-Helm PostgreSQL name: postgresql -version: 0.1.4 +version: 0.1.5 home: https://www.postgresql.org sources: - https://github.com/postgres/postgres diff --git a/postgresql/templates/statefulset.yaml b/postgresql/templates/statefulset.yaml index 4a297cd84..221f8c64e 100644 --- a/postgresql/templates/statefulset.yaml +++ b/postgresql/templates/statefulset.yaml @@ -191,6 +191,13 @@ spec: - /tmp/start.sh {{ dict "envAll" . "component" "server" "container" "postgresql" "type" "liveness" "probeTemplate" (include "livenessProbeTemplate" . | fromYaml) | include "helm-toolkit.snippets.kubernetes_probe" | trim | indent 10 }} {{ dict "envAll" . "component" "server" "container" "postgresql" "type" "readiness" "probeTemplate" (include "readinessProbeTemplate" . | fromYaml) | include "helm-toolkit.snippets.kubernetes_probe" | trim | indent 10 }} + lifecycle: + preStop: + exec: + command: + - bash + - -c + - kill -INT 1 volumeMounts: - name: pod-tmp mountPath: /tmp diff --git a/postgresql/values.yaml b/postgresql/values.yaml index 12c11359b..9e3ae0913 100644 --- a/postgresql/values.yaml +++ b/postgresql/values.yaml @@ -98,7 +98,7 @@ pod: timeoutSeconds: 5 failureThreshold: 10 readiness: - enabled: true + enabled: false params: initialDelaySeconds: 30 timeoutSeconds: 5