From 3ac58fd2ee96a3f5a1169d3f09fad7e65ab129d2 Mon Sep 17 00:00:00 2001 From: Taehyun Kim <11684628+kimxogus@users.noreply.github.com> Date: Tue, 6 Aug 2024 18:01:22 +0900 Subject: [PATCH] fix: add missing node affinity matcher to write component (#8910) * fix: add node affinity matcher to write component * docs: changelog * docs: add pr number to changelog --- CHANGELOG.md | 1 + operations/mimir/read-write-deployment/write.libsonnet | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8a35819aa17..f2ca0e2ecc0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -119,6 +119,7 @@ * [ENHANCEMENT] Do not deploy ingester-zone-c when experimental ingest storage is enabled and `ingest_storage_ingester_zones` is configured to `2`. #8776 * [ENHANCEMENT] Added the config option `ingest_storage_migration_classic_ingesters_no_scale_down_delay` to disable the downscale delay on classic ingesters when migrating to experimental ingest storage. #8775 #8873 * [ENHANCEMENT] Configure experimental ingest storage on query-frontend too when enabled. #8843 +* [BUGFIX] Added missing node affinity matchers to write component. #8910 ### Mimirtool diff --git a/operations/mimir/read-write-deployment/write.libsonnet b/operations/mimir/read-write-deployment/write.libsonnet index 1275af7ea9d..16beb31cb97 100644 --- a/operations/mimir/read-write-deployment/write.libsonnet +++ b/operations/mimir/read-write-deployment/write.libsonnet @@ -80,6 +80,7 @@ local replicas = std.ceil($._config.mimir_write_replicas / 3); $.newMimirStatefulSet(name, replicas, container, mimir_write_data_pvc) + + $.newMimirNodeAffinityMatchers(nodeAffinityMatchers) + statefulSet.mixin.metadata.withLabels({ 'rollout-group': 'mimir-write' }) + statefulSet.mixin.metadata.withAnnotations({ 'rollout-max-unavailable': std.toString($._config.mimir_write_max_unavailable) }) + statefulSet.mixin.spec.template.metadata.withLabels({ name: name, 'rollout-group': 'mimir-write' }) +