From db066656d18393c661585dbc9fafaa9565744569 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ra=C3=BAl=20Sevilla?= Date: Fri, 22 Sep 2023 16:03:46 +0200 Subject: [PATCH] ScheduleAnyway policy (#39) Signed-off-by: Raul Sevilla --- pkg/runner/types.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/runner/types.go b/pkg/runner/types.go index aaa408e..1b71916 100644 --- a/pkg/runner/types.go +++ b/pkg/runner/types.go @@ -77,7 +77,7 @@ var server = appsv1.Deployment{ TopologySpreadConstraints: []corev1.TopologySpreadConstraint{{ MaxSkew: 1, TopologyKey: "kubernetes.io/hostname", - WhenUnsatisfiable: corev1.DoNotSchedule, + WhenUnsatisfiable: corev1.ScheduleAnyway, LabelSelector: &metav1.LabelSelector{ MatchLabels: map[string]string{"app": serverName}, }, @@ -137,7 +137,7 @@ var client = appsv1.Deployment{ TopologySpreadConstraints: []corev1.TopologySpreadConstraint{{ MaxSkew: 1, TopologyKey: "kubernetes.io/hostname", - WhenUnsatisfiable: corev1.DoNotSchedule, + WhenUnsatisfiable: corev1.ScheduleAnyway, LabelSelector: &metav1.LabelSelector{ MatchLabels: map[string]string{"app": clientName}, },