diff --git a/charts/trino/templates/deployment-coordinator.yaml b/charts/trino/templates/deployment-coordinator.yaml index 12ec8f36..258f8c53 100644 --- a/charts/trino/templates/deployment-coordinator.yaml +++ b/charts/trino/templates/deployment-coordinator.yaml @@ -68,6 +68,7 @@ spec: {{- end }} imagePullSecrets: {{- toYaml .Values.imagePullSecrets | nindent 8 }} + terminationGracePeriodSeconds: {{ .Values.coordinator.terminationGracePeriodSeconds | default 30 }} containers: - name: {{ .Chart.Name }}-coordinator image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" @@ -122,6 +123,8 @@ spec: timeoutSeconds: {{ .Values.coordinator.readinessProbe.timeoutSeconds | default 5 }} failureThreshold: {{ .Values.coordinator.readinessProbe.failureThreshold | default 6 }} successThreshold: {{ .Values.coordinator.readinessProbe.successThreshold | default 1 }} + lifecycle: + {{- toYaml .Values.coordinator.lifecycle | nindent 12 }} resources: {{- toYaml .Values.coordinator.resources | nindent 12 }} {{- with .Values.coordinator.nodeSelector }} diff --git a/charts/trino/values.yaml b/charts/trino/values.yaml index 7f097bd7..8ec26c11 100644 --- a/charts/trino/values.yaml +++ b/charts/trino/values.yaml @@ -192,6 +192,13 @@ coordinator: # failureThreshold: 6 # successThreshold: 1 + lifecycle: {} + # preStop: + # exec: + # command: ["/bin/sh", "-c", "sleep 120"] + + terminationGracePeriodSeconds: "" + nodeSelector: {} tolerations: []