From c440d3a9914a3f23e57c5c083d3a64bf31275144 Mon Sep 17 00:00:00 2001 From: purelind Date: Wed, 2 Aug 2023 15:44:36 +0800 Subject: [PATCH] feat: add node affinity --- .../jenkins-beta/release/values-controller.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/apps/prod/jenkins-beta/release/values-controller.yaml b/apps/prod/jenkins-beta/release/values-controller.yaml index 5f9548487..67b6cedd8 100644 --- a/apps/prod/jenkins-beta/release/values-controller.yaml +++ b/apps/prod/jenkins-beta/release/values-controller.yaml @@ -13,6 +13,20 @@ controller: # all plugins are installed in the image already installPlugins: false + affinity: + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - key: kubernetes.io/arch + operator: In + values: + - amd64 + - key: ee-infra-service + operator: In + values: + - "true" + # https://docs.cloudbees.com/docs/admin-resources/latest/jvm-troubleshooting/ # current jenkins using java-11. # Set min/max heap here if needed with: