From b595d573bce83e28948db0b8ac5c36f5c40202c6 Mon Sep 17 00:00:00 2001 From: Mikhail Goncharov Date: Fri, 26 May 2023 18:09:45 +0200 Subject: [PATCH] scale down linux agents as we run them on LLVM cluster --- gcloud_config.sh | 7 +++++++ kubernetes/buildkite/linux-agents.yaml | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100755 gcloud_config.sh diff --git a/gcloud_config.sh b/gcloud_config.sh new file mode 100755 index 0000000..98c35c4 --- /dev/null +++ b/gcloud_config.sh @@ -0,0 +1,7 @@ +#!/bin/bash +set -uo pipefail +gcloud config set project ${GCP_PROJECT} +gcloud config set compute/zone ${GCP_ZONE} +gcloud auth configure-docker +gcloud container clusters get-credentials $GCP_CLUSTER + diff --git a/kubernetes/buildkite/linux-agents.yaml b/kubernetes/buildkite/linux-agents.yaml index 2e3ef72..a461fcd 100644 --- a/kubernetes/buildkite/linux-agents.yaml +++ b/kubernetes/buildkite/linux-agents.yaml @@ -18,7 +18,7 @@ metadata: name: linux-agents namespace: buildkite spec: - replicas: 5 + replicas: 0 strategy: rollingUpdate: maxSurge: 25%