Skip to content

Commit b45a31e

Browse files
fix: scheduling constraints (#16045)
Signed-off-by: Trevor Whitney <trevorjwhitney@gmail.com>
1 parent 8f9f92f commit b45a31e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎production/ksonnet/loki/multi-zone.libsonnet

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ local rolloutOperator = import 'rollout-operator.libsonnet';
3030
// If use_topology_spread is false, ingesters will not be scheduled on nodes already running ingesters.
3131
multi_zone_ingester_use_topology_spread: false,
3232
multi_zone_ingester_topology_spread_max_skew: 1,
33+
multi_zone_ingester_topology_spread_when_unsatisfiable: 'ScheduleAnyway',
3334

3435
node_selector: null,
3536
},
@@ -116,7 +117,7 @@ local rolloutOperator = import 'rollout-operator.libsonnet';
116117
// Evenly spread queriers among available nodes.
117118
topologySpreadConstraints.labelSelector.withMatchLabels({ name: name }) +
118119
topologySpreadConstraints.withTopologyKey('kubernetes.io/hostname') +
119-
topologySpreadConstraints.withWhenUnsatisfiable('ScheduleAnyway') +
120+
topologySpreadConstraints.withWhenUnsatisfiable($._config.multi_zone_ingester_topology_spread_when_unsatisfiable) +
120121
topologySpreadConstraints.withMaxSkew($._config.multi_zone_ingester_topology_spread_max_skew),
121122
)
122123
else {}

0 commit comments

Comments
 (0)