From 76441fa374e1eb0e792b6e696ea745cd525fd956 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Raphael=20St=C3=A4bler?= Date: Mon, 17 Jun 2024 20:29:33 +0200 Subject: [PATCH] Revert "Remove node affinity" This reverts commit a2fa7145264478cb7dec94cd18b29bede800b2cd. --- deploy/k8s/analytodon-cli.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/deploy/k8s/analytodon-cli.yml b/deploy/k8s/analytodon-cli.yml index b4b9bdb..a309960 100644 --- a/deploy/k8s/analytodon-cli.yml +++ b/deploy/k8s/analytodon-cli.yml @@ -15,6 +15,16 @@ spec: labels: app: analytodon-cli spec: + affinity: + nodeAffinity: + preferredDuringSchedulingIgnoredDuringExecution: + - weight: 1 + preference: + matchExpressions: + - key: project + operator: In + values: + - mastodon containers: - name: analytodon-cli image: productionbuild/analytodon-cli:latest