From c5ce23d1c6f9aa84e625437f182dab7eb017c1ac Mon Sep 17 00:00:00 2001 From: Matthias Loibl Date: Tue, 7 Apr 2020 18:03:33 +0200 Subject: [PATCH] Use tc.config.replicas variable in compact component. While we shouldn't run multiple compactors at once, we still might want to run 1 or 0 replicas. Signed-off-by: Matthias Loibl --- jsonnet/kube-thanos/kube-thanos-compact.libsonnet | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jsonnet/kube-thanos/kube-thanos-compact.libsonnet b/jsonnet/kube-thanos/kube-thanos-compact.libsonnet index f258c664..942912d2 100644 --- a/jsonnet/kube-thanos/kube-thanos-compact.libsonnet +++ b/jsonnet/kube-thanos/kube-thanos-compact.libsonnet @@ -81,7 +81,7 @@ local k = import 'ksonnet/ksonnet.beta.4/k.libsonnet'; container.mixin.readinessProbe.httpGet.withScheme('HTTP') + container.mixin.readinessProbe.httpGet.withPath('/-/ready'); - statefulSet.new(tc.config.name, 1, c, [], tc.config.commonLabels) + + statefulSet.new(tc.config.name, tc.config.replicas, c, [], tc.config.commonLabels) + statefulSet.mixin.metadata.withNamespace(tc.config.namespace) + statefulSet.mixin.metadata.withLabels(tc.config.commonLabels) + statefulSet.mixin.spec.withServiceName(tc.service.metadata.name) +