diff --git a/production/ksonnet/loki/multi-zone.libsonnet b/production/ksonnet/loki/multi-zone.libsonnet index 1f43eb1c86d0a..a3d48f21a96d8 100644 --- a/production/ksonnet/loki/multi-zone.libsonnet +++ b/production/ksonnet/loki/multi-zone.libsonnet @@ -30,7 +30,6 @@ local rolloutOperator = import 'rollout-operator.libsonnet'; // If use_topology_spread is false, ingesters will not be scheduled on nodes already running ingesters. multi_zone_ingester_use_topology_spread: false, multi_zone_ingester_topology_spread_max_skew: 1, - multi_zone_ingester_topology_spread_when_unsatisfiable: 'ScheduleAnyway', node_selector: null, }, @@ -117,7 +116,7 @@ local rolloutOperator = import 'rollout-operator.libsonnet'; // Evenly spread queriers among available nodes. topologySpreadConstraints.labelSelector.withMatchLabels({ name: name }) + topologySpreadConstraints.withTopologyKey('kubernetes.io/hostname') + - topologySpreadConstraints.withWhenUnsatisfiable($._config.multi_zone_ingester_topology_spread_when_unsatisfiable) + + topologySpreadConstraints.withWhenUnsatisfiable('ScheduleAnyway') + topologySpreadConstraints.withMaxSkew($._config.multi_zone_ingester_topology_spread_max_skew), ) else {}