Skip to content

Commit e880ddd

Browse files
[CI] Add maintenance window to premerge clusters (#522)
This patch adds an explicit maintenance window to the premerge clusters. This is in response to some control plane upgrades that we recieved notice of that will prevent access to the k8s control plane for ~15 minutes which means we will not be able to start new jobs. We should have this anyways though as the current node upgrade strategy also breaks jobs.
1 parent 92827a6 commit e880ddd

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

premerge/gke_cluster/main.tf

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,16 @@ resource "google_container_cluster" "llvm_premerge" {
1919
workload_identity_config {
2020
workload_pool = "llvm-premerge-checks.svc.id.goog"
2121
}
22+
23+
# We prefer that maintenance is done on weekends between 02:00 and 05:00
24+
# UTC when commit traffic is low to avoid interruptions.
25+
maintenance_policy {
26+
recurring_window {
27+
start_time = "2025-07-24T02:00:00Z"
28+
end_time = "2025-07-24T05:00:00Z"
29+
recurrence = "FREQ=WEEKLY;BYDAY=SA,SU"
30+
}
31+
}
2232
}
2333

2434
resource "google_container_node_pool" "llvm_premerge_linux_service" {

0 commit comments

Comments
 (0)