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:
433
433
{{- end }}
434
434
ports :
435
435
- 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 }} ]
442
436
# Probe to check if app is running. Failure will lead to a pod restart.
443
437
livenessProbe :
444
438
httpGet :
@@ -482,6 +476,11 @@ spec:
482
476
mountPath : /post-start.sh
483
477
subPath : post-start.sh
484
478
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 }} ]
485
484
postStart :
486
485
exec :
487
486
command : ["/bin/bash", "/post-start.sh"]
You can’t perform that action at this time.
0 commit comments