From 4d1a305c65772bc29fbfa454d891ebdc742ab10f Mon Sep 17 00:00:00 2001 From: gabemontero Date: Mon, 12 Feb 2024 11:23:33 -0500 Subject: [PATCH] add affinity policies to results watcher rh-pre-commit.version: 2.1.0 rh-pre-commit.check-secrets: ENABLED --- .../tekton-results/watcher-config.yaml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/operator/gitops/argocd/pipeline-service/tekton-results/watcher-config.yaml b/operator/gitops/argocd/pipeline-service/tekton-results/watcher-config.yaml index d240551a2..60cac6c36 100644 --- a/operator/gitops/argocd/pipeline-service/tekton-results/watcher-config.yaml +++ b/operator/gitops/argocd/pipeline-service/tekton-results/watcher-config.yaml @@ -10,6 +10,23 @@ spec: replicas: 1 template: spec: + affinity: + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - key: kubernetes.io/os + operator: NotIn + values: + - windows + podAntiAffinity: + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchLabels: + app.kubernetes.io/name: tekton-results-watcher + topologyKey: kubernetes.io/hostname + weight: 100 containers: - name: watcher args: