File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 60
60
- ' sh'
61
61
- ' -ec'
62
62
- printf "${ST2_AUTH_USERNAME}:$(openssl passwd -apr1 "${ST2_AUTH_PASSWORD}")\n" > /tmp/st2/htpasswd
63
+ terminationGracePeriodSeconds : {{ .Values.st2auth.terminationGracePeriodSeconds | default 30 }}
63
64
containers :
64
65
- name : st2auth
65
66
image : ' {{ template "stackstorm-ha.imageRepository" . }}/st2auth:{{ tpl (.Values.st2auth.image.tag | default .Values.image.tag) . }}'
@@ -179,6 +180,7 @@ spec:
179
180
{{- if and .Values.st2.packs.images (not .Values.st2.packs.volumes.enabled) }}
180
181
{{- include "stackstorm-ha.packs-initContainers" . | nindent 6 }}
181
182
{{- end }}
183
+ terminationGracePeriodSeconds : {{ .Values.st2api.terminationGracePeriodSeconds | default 30 }}
182
184
containers :
183
185
- name : st2api
184
186
image : ' {{ template "stackstorm-ha.imageRepository" . }}/st2api:{{ tpl (.Values.st2api.image.tag | default .Values.image.tag) . }}'
@@ -220,6 +222,9 @@ spec:
220
222
mountPath : /post-start.sh
221
223
subPath : post-start.sh
222
224
lifecycle :
225
+ preStop :
226
+ exec :
227
+ command : [ "sleep", {{ .Values.st2.st2api.preStopSleep }} ]
223
228
postStart :
224
229
exec :
225
230
command : ["/bin/bash", "/post-start.sh"]
You can’t perform that action at this time.
0 commit comments