diff --git a/CHANGELOG.md b/CHANGELOG.md index 1e47ebeb..70391040 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,8 @@ * [CHANGE] Add overrides config to tsdb store-gateway. #167 * [CHANGE] Ingesters now default to running as `StatefulSet` with WAL enabled. It is controlled by the config `$._config.ingester_deployment_without_wal` which is `false` by default. Setting the config to `true` will yeild the old behaviour (stateless `Deployment` without WAL enabled). #72 * [CHANGE] We now allow queries that are 32 days long. For example, rate(metric[32d]). Before it was 31d. #173 +* [BUGFIX] Add support the `local` ruler client type +* [BUGFIX] Ensure namespaces are set on all kubernetes resources. #178 * [ENHANCEMENT] Enable support for HA in the Cortex Alertmanager #147 ## 1.3.0 / 2020-08-21 diff --git a/cortex/distributor.libsonnet b/cortex/distributor.libsonnet index 24169840..7147fde6 100644 --- a/cortex/distributor.libsonnet +++ b/cortex/distributor.libsonnet @@ -54,6 +54,7 @@ distributor_deployment: deployment.new('distributor', 3, [$.distributor_container], $.distributor_deployment_labels) + + deployment.mixin.metadata.withNamespace($._config.namespace) + $.util.antiAffinity + $.util.configVolumeMount('overrides', '/etc/cortex'), diff --git a/cortex/memcached.libsonnet b/cortex/memcached.libsonnet index a7600c33..f7a7da29 100644 --- a/cortex/memcached.libsonnet +++ b/cortex/memcached.libsonnet @@ -13,6 +13,7 @@ memcached { self.memcached_container, self.memcached_exporter, ], []) + + statefulSet.mixin.metadata.withNamespace($._config.namespace) + statefulSet.mixin.spec.withServiceName(self.name) + $.util.antiAffinity, diff --git a/cortex/querier.libsonnet b/cortex/querier.libsonnet index 83d63845..c48272eb 100644 --- a/cortex/querier.libsonnet +++ b/cortex/querier.libsonnet @@ -54,6 +54,7 @@ querier_deployment: deployment.new('querier', $._config.querier.replicas, [$.querier_container], $.querier_deployment_labels) + + deployment.mixin.metadata.withNamespace($._config.namespace) + $.util.antiAffinity + $.util.configVolumeMount('overrides', '/etc/cortex') + $.storage_config_mixin, diff --git a/cortex/query-frontend.libsonnet b/cortex/query-frontend.libsonnet index d7358182..57349466 100644 --- a/cortex/query-frontend.libsonnet +++ b/cortex/query-frontend.libsonnet @@ -65,6 +65,7 @@ query_frontend_deployment: deployment.new('query-frontend', $._config.queryFrontend.replicas, [$.query_frontend_container]) + + deployment.mixin.metadata.withNamespace($._config.namespace) + $.util.configVolumeMount('overrides', '/etc/cortex') + $.util.antiAffinity + // inject storage schema in order to know what/how to shard