Skip to content

Commit

Permalink
[CI] Add annotation to prevent eviction during node scale down
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
boomanaiden154 committed Jan 12, 2025
1 parent 87ec873 commit 69508a6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions premerge/linux_runners_values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ containerMode:
annotations:

template:
metadata:
annotations:
cluster-autoscaler.kubernetes.io/safe-to-evict: "false"
spec:
tolerations:
- key: "premerge-platform"
Expand Down

0 comments on commit 69508a6

Please sign in to comment.