Skip to content

Commit

Permalink
feat(ksonnet): Add no_schedule_constraints option to distributors (#1…
Browse files Browse the repository at this point in the history
  • Loading branch information
benclive authored Jan 31, 2025
1 parent 86dc47b commit 9e9a09d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion production/ksonnet/loki/distributor.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ local k = import 'ksonnet-util/kausal.libsonnet';
) +
deployment.mixin.spec.strategy.rollingUpdate.withMaxSurge(5) +
deployment.mixin.spec.strategy.rollingUpdate.withMaxUnavailable(1) +
if $._config.distributor.use_topology_spread then
if $._config.distributor.no_schedule_constraints then {}
else if $._config.distributor.use_topology_spread then
deployment.spec.template.spec.withTopologySpreadConstraints(
// Evenly spread queriers among available nodes.
topologySpreadConstraints.labelSelector.withMatchLabels({ name: 'distributor' }) +
Expand Down

0 comments on commit 9e9a09d

Please sign in to comment.