From 1b356de98818a13d7752136b2cb531f4a7675508 Mon Sep 17 00:00:00 2001 From: Vojtech Mares Date: Mon, 31 Jul 2023 15:47:24 +0900 Subject: [PATCH] fix(helm): translate UTC time to KST (GMT+9) --- deploy/charts/wsj-drink/templates/job.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/deploy/charts/wsj-drink/templates/job.yaml b/deploy/charts/wsj-drink/templates/job.yaml index cc2909b..8e03497 100644 --- a/deploy/charts/wsj-drink/templates/job.yaml +++ b/deploy/charts/wsj-drink/templates/job.yaml @@ -3,7 +3,9 @@ kind: CronJob metadata: name: {{ include "wsj-drink.fullname" . }}-job spec: - schedule: "0 7-21 * * *" + # Schedule does not support time zones, so we use UTC + # 7-21 UTC => 22-12 KRT (GMT+9) + schedule: "0 22-12 * * *" jobTemplate: spec: backoffLimit: 4