File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -433,12 +433,6 @@ spec:
433433 {{- end }}
434434 ports :
435435 - containerPort : {{ eq (get .Values.st2web.env "ST2WEB_HTTPS" | toString) "1" | ternary 443 80 }}
436- lifecycle :
437- preStop :
438- exec : # https://blog.laputa.io/graceful-shutdown-in-kubernetes-85f1c8d586da
439- # kubeproxy and kubelet both race
440- # wait a bit to ensure kubeproxy has removed the iptables rule.
441- command : [ "sleep", {{ .Values.st2web.preStopSleep | toString }} ]
442436 # Probe to check if app is running. Failure will lead to a pod restart.
443437 livenessProbe :
444438 httpGet :
@@ -482,6 +476,11 @@ spec:
482476 mountPath : /post-start.sh
483477 subPath : post-start.sh
484478 lifecycle :
479+ preStop :
480+ exec : # https://blog.laputa.io/graceful-shutdown-in-kubernetes-85f1c8d586da
481+ # kubeproxy and kubelet both race
482+ # wait a bit to ensure kubeproxy has removed the iptables rule.
483+ command : [ "sleep", {{ .Values.st2web.preStopSleep | toString }} ]
485484 postStart :
486485 exec :
487486 command : ["/bin/bash", "/post-start.sh"]
You can’t perform that action at this time.
0 commit comments