Skip to content

Commit 9e9a09d

Browse files
authored
feat(ksonnet): Add no_schedule_constraints option to distributors (#16029)
1 parent 86dc47b commit 9e9a09d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎production/ksonnet/loki/distributor.libsonnet

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ local k = import 'ksonnet-util/kausal.libsonnet';
3535
) +
3636
deployment.mixin.spec.strategy.rollingUpdate.withMaxSurge(5) +
3737
deployment.mixin.spec.strategy.rollingUpdate.withMaxUnavailable(1) +
38-
if $._config.distributor.use_topology_spread then
38+
if $._config.distributor.no_schedule_constraints then {}
39+
else if $._config.distributor.use_topology_spread then
3940
deployment.spec.template.spec.withTopologySpreadConstraints(
4041
// Evenly spread queriers among available nodes.
4142
topologySpreadConstraints.labelSelector.withMatchLabels({ name: 'distributor' }) +

0 commit comments

Comments
 (0)