[stable/postgresql] Add terminationGracePeriodSeconds parameter. (#8165)

30 seconds by default might not be enough in some cases.

Signed-off-by: Cédric de Saint Martin <cdesaintmartin@wiremind.fr>
This commit is contained in:
Cédric de Saint Martin
2018-10-08 13:00:58 -07:00
committed by k8s-ci-robot
parent b6f04fa4c9
commit 68ec4ff1a2
4 changed files with 10 additions and 1 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
name: postgresql
version: 0.18.2
version: 0.19.0
appVersion: 9.6.2
description: Object-relational database management system (ORDBMS) with an emphasis on extensibility and on standards-compliance.
keywords:
+1
View File
@@ -83,6 +83,7 @@ The following table lists the configurable parameters of the PostgreSQL chart an
| `nodeSelector` | Node labels for pod assignment | {} |
| `affinity` | Affinity settings for pod assignment | {} |
| `tolerations` | Toleration labels for pod assignment | [] |
| `terminationGracePeriodSeconds` | Optional duration in seconds the pod needs to terminate gracefully | `nil` |
| `probes.liveness.initialDelay` | Liveness probe initial delay | `60` |
| `probes.liveness.timeoutSeconds` | Liveness probe timeout seconds | `5` |
| `probes.liveness.failureThreshold` | Liveness probe failure threshold | `6` |
@@ -47,6 +47,9 @@ spec:
{{- if .Values.schedulerName }}
schedulerName: "{{ .Values.schedulerName }}"
{{- end }}
{{- if .Values.terminationGracePeriodSeconds }}
terminationGracePeriodSeconds: {{ .Values.terminationGracePeriodSeconds }}
{{- end }}
containers:
- name: {{ template "postgresql.fullname" . }}
image: "{{ .Values.image }}:{{ .Values.imageTag }}"
+5
View File
@@ -43,6 +43,11 @@ usePasswordFile: false
##
# schedulerName:
## Optional duration in seconds the pod needs to terminate gracefully.
## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod/#termination-of-pods
##
# terminationGracePeriodSeconds: 30
## Specify runtime config parameters as a dict, using camelCase, e.g.
## {"sharedBuffers": "500MB"}
## ref: https://www.postgresql.org/docs/current/static/runtime-config.html