Skip to content

Commit 31c4f2a

Browse files
authored
add terminationGracePeriodSeconds to backend (#273)
1 parent cd98f4f commit 31c4f2a

4 files changed

Lines changed: 12 additions & 1 deletion

File tree

charts/retool/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: retool
33
description: A Helm chart for Kubernetes
44
type: application
5-
version: 6.10.0
5+
version: 6.10.1
66
maintainers:
77
- name: Retool Engineering
88
email: engineering+helm@retool.com

charts/retool/templates/deployment_backend.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ spec:
4444
{{ toYaml .Values.ui.labels | indent 8 }}
4545
{{- end }}
4646
spec:
47+
terminationGracePeriodSeconds: {{ .Values.backend.terminationGracePeriodSeconds | default 136 }}
4748
serviceAccountName: {{ template "retool.serviceAccountName" . }}
4849
{{- if .Values.priorityClassName }}
4950
priorityClassName: "{{ .Values.priorityClassName }}"

charts/retool/values.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,11 @@ backend:
384384
# Labels for backend pods
385385
labels: {}
386386

387+
# Make backend pods wait the specified time before kubernetes will forcibly kill them when they need to be rescheduled
388+
# By default this is a 2 minutes + 15 seconds + 1 second (136) grace period to allow outstanding queries to complete
389+
# Change this to 10 minutes 15 seconds + 1 second (616) if you are using long-running queries with a 10 minute timeout
390+
terminationGracePeriodSeconds: 136
391+
387392
ui:
388393
# Annotations for ui pods
389394
annotations: {}

values.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,11 @@ backend:
384384
# Labels for backend pods
385385
labels: {}
386386

387+
# Make backend pods wait the specified time before kubernetes will forcibly kill them when they need to be rescheduled
388+
# By default this is a 2 minutes + 15 seconds + 1 second (136) grace period to allow outstanding queries to complete
389+
# Change this to 10 minutes 15 seconds + 1 second (616) if you are using long-running queries with a 10 minute timeout
390+
terminationGracePeriodSeconds: 136
391+
387392
ui:
388393
# Annotations for ui pods
389394
annotations: {}

0 commit comments

Comments
 (0)