Skip to content
This repository was archived by the owner on Apr 28, 2025. It is now read-only.

Ensure namespace is set on all Kubernetes resources #178

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should not be here -- it's already on top.

* [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
Expand Down
1 change: 1 addition & 0 deletions cortex/distributor.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -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'),

Expand Down
1 change: 1 addition & 0 deletions cortex/memcached.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -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,

Expand Down
1 change: 1 addition & 0 deletions cortex/querier.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 1 addition & 0 deletions cortex/query-frontend.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down