Skip to content

Commit

Permalink
add affinity policies to results watcher
Browse files Browse the repository at this point in the history
rh-pre-commit.version: 2.1.0
rh-pre-commit.check-secrets: ENABLED
  • Loading branch information
gabemontero committed Feb 13, 2024
1 parent c3b18b3 commit 4d1a305
Showing 1 changed file with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 4d1a305

Please sign in to comment.