Skip to content

Commit

Permalink
ScheduleAnyway policy (#39)
Browse files Browse the repository at this point in the history
Signed-off-by: Raul Sevilla <[email protected]>
  • Loading branch information
rsevilla87 authored Sep 22, 2023
1 parent b1aa35f commit db06665
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/runner/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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},
},
Expand Down Expand Up @@ -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},
},
Expand Down

0 comments on commit db06665

Please sign in to comment.