Skip to content

Commit d9a0c4b

Browse files
committed
add pod graceful timeout override
1 parent c4fdcee commit d9a0c4b

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

templates/deployments.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -753,6 +753,7 @@ spec:
753753
{{- toYaml .Values.st2workflowengine.annotations | nindent 8 }}
754754
{{- end }}
755755
spec:
756+
terminationGracePeriodSeconds: {{ .Values.st2workflowengine.terminationGracePeriodSeconds | default 300 }}
756757
imagePullSecrets:
757758
{{- if .Values.image.pullSecret }}
758759
- name: {{ .Values.image.pullSecret }}
@@ -1321,6 +1322,7 @@ spec:
13211322
{{- if and .Values.st2.packs.images (not .Values.st2.packs.volumes.enabled) }}
13221323
{{- include "stackstorm-ha.packs-initContainers" . | nindent 6 }}
13231324
{{- end }}
1325+
terminationGracePeriodSeconds: {{ .Values.st2actionrunner.terminationGracePeriodSeconds | default 300 }}
13241326
containers:
13251327
- name: st2actionrunner
13261328
{{- with .Values.st2actionrunner }}

values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -563,6 +563,7 @@ st2timersengine:
563563
# https://docs.stackstorm.com/reference/ha.html#st2workflowengine
564564
# Multiple st2workflowengine processes can run in active-active mode and will share the load and pick up more work if one or more of the processes become available.
565565
st2workflowengine:
566+
#terminationGracePeriodSeconds: 350
566567
replicas: 2
567568
resources:
568569
requests:
@@ -657,6 +658,7 @@ st2notifier:
657658
# Multiple st2actionrunner processes can run in active-active with only connections to MongoDB and RabbitMQ. Work gets naturally
658659
# distributed across runners via RabbitMQ. Adding more st2actionrunner processes increases the ability of StackStorm to execute actions.
659660
st2actionrunner:
661+
#terminationGracePeriodSeconds: 350
660662
replicas: 5
661663
resources:
662664
requests:

0 commit comments

Comments
 (0)