Skip to content

Commit 69508a6

Browse files
[CI] Add annotation to prevent eviction during node scale down
Because we are using GKE's autoscaling features, we need to ensure that either the runner or workflow pod are marked with an annotation prevent scale down from happening on the node. Otherwise GKE will decide that nodes actively running pods should be scaled down rather than looking for empty nodes, with the idea being that applications should be resilient against individual pods being killed, which we are not.
1 parent 87ec873 commit 69508a6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

premerge/linux_runners_values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ containerMode:
1616
annotations:
1717

1818
template:
19+
metadata:
20+
annotations:
21+
cluster-autoscaler.kubernetes.io/safe-to-evict: "false"
1922
spec:
2023
tolerations:
2124
- key: "premerge-platform"

0 commit comments

Comments
 (0)