From f8f5b28d56ef977e12ed5a128cc561dd69c89d45 Mon Sep 17 00:00:00 2001 From: Rich Wareham <rjw57@cam.ac.uk> Date: Thu, 30 Apr 2020 09:50:12 +0100 Subject: [PATCH] move cluster maintenance window To avoid GMT/BST issues, move the maintenance window from 4-8AM UTC to 2-6AM UTC. Google requires that the window be at least 4 hours. Closes #11 --- main.tf | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/main.tf b/main.tf index ddb7855..0e7641f 100644 --- a/main.tf +++ b/main.tf @@ -75,12 +75,10 @@ resource "google_container_cluster" "cluster" { ] } - # Stop Google from upgrading cluster nodes during the work week + # Stop Google from upgrading cluster nodes during work hours. maintenance_policy { - recurring_window { - recurrence = "FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR,SA,SU" - end_time = "2020-01-28T08:00:00Z" - start_time = "2020-01-28T04:00:00Z" + daily_maintenance_window { + start_time = "02:00" } } } -- GitLab