From db67dc2635fdab3eebda5105c1860c502dd43f51 Mon Sep 17 00:00:00 2001 From: pierreozoux <pierre@ozoux.net> Date: Tue, 7 Sep 2021 16:19:38 +0200 Subject: [PATCH] Adds node affinity to Nc deploy. --- nextcloud/manifests/app.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/nextcloud/manifests/app.yml b/nextcloud/manifests/app.yml index 5ad14c0..5b96014 100644 --- a/nextcloud/manifests/app.yml +++ b/nextcloud/manifests/app.yml @@ -107,6 +107,15 @@ spec: app.kubernetes.io/part-of: Nextcloud spec: affinity: + nodeAffinity: + preferredDuringSchedulingIgnoredDuringExecution: + - weight: 20 + preference: + matchExpressions: + - key: stateless + operator: In + values: + - "true" podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: - weight: 100 -- GitLab