From e691cff956993cb12f6be4cc8e0d552a617291c6 Mon Sep 17 00:00:00 2001 From: Min Zhang <minzhangcmu@gmail.com> Date: Thu, 13 Jun 2019 16:50:29 -0700 Subject: [PATCH] fix: add prestop hook to give log-service some buffer to finish uploading (#58) --- config/pod.yaml.tim | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config/pod.yaml.tim b/config/pod.yaml.tim index 1e5552b..4653f22 100644 --- a/config/pod.yaml.tim +++ b/config/pod.yaml.tim @@ -24,6 +24,10 @@ spec: - name: vm-launcher image: {{base_image}} imagePullPolicy: Always + lifecycle: + preStop: + exec: + command: ["/bin/sh","-c","sleep 30"] securityContext: privileged: true resources: