diff --git a/CHANGELOG.md b/CHANGELOG.md index 82825a1..c45c620 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,7 @@ We use *breaking* word for marking changes that are not backward compatible (rel - [#279](https://github.com/thanos-io/kube-thanos/pull/279) Change `hashringConfigmapName` to `hashringConfigMapName` in Receive configuration. - [#284](https://github.com/thanos-io/kube-thanos/pull/284) Change Receive `PodDisruptionBudget` api version to `policy/v1` - [#293](https://github.com/thanos-io/kube-thanos/pull/293) Upgrade to Thanos v0.30.2 +- [#303](https://github.com/thanos-io/kube-thanos/pull/303) Compact: allow configuration of `tc.config.replicas` ### Added diff --git a/jsonnet/kube-thanos/kube-thanos-compact-default-params.libsonnet b/jsonnet/kube-thanos/kube-thanos-compact-default-params.libsonnet index 69b3643..741de83 100644 --- a/jsonnet/kube-thanos/kube-thanos-compact-default-params.libsonnet +++ b/jsonnet/kube-thanos/kube-thanos-compact-default-params.libsonnet @@ -8,6 +8,7 @@ version: error 'must provide version', image: error 'must provide image', imagePullPolicy: 'IfNotPresent', + replicas: 1, objectStorageConfig: error 'must provide objectStorageConfig', resources: {}, logLevel: 'info', diff --git a/jsonnet/kube-thanos/kube-thanos-compact.libsonnet b/jsonnet/kube-thanos/kube-thanos-compact.libsonnet index 5ff37d5..5141a24 100644 --- a/jsonnet/kube-thanos/kube-thanos-compact.libsonnet +++ b/jsonnet/kube-thanos/kube-thanos-compact.libsonnet @@ -138,7 +138,7 @@ function(params) { labels: tc.config.commonLabels, }, spec: { - replicas: 1, + replicas: tc.config.replicas, selector: { matchLabels: tc.config.podLabelSelector }, serviceName: tc.service.metadata.name, template: {