From aa51ecd0de07545cf7282af8b5e3cd3a6cc23d1e Mon Sep 17 00:00:00 2001 From: Dotan Simha Date: Mon, 30 Mar 2026 13:09:10 +0300 Subject: [PATCH] fix(deployment): use `replicas=1` for otel-collector and allow it to scale when needed (#7929) --- deployment/services/environment.ts | 1 + deployment/services/otel-collector.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/deployment/services/environment.ts b/deployment/services/environment.ts index 5b94a878b..7ee284c93 100644 --- a/deployment/services/environment.ts +++ b/deployment/services/environment.ts @@ -83,6 +83,7 @@ export function prepareEnvironment(input: { cpuLimit: isProduction || isStaging ? '1000m' : '100m', memoryLimit: isProduction || isStaging ? '1000Mi' : '512Mi', maxReplicas: isProduction || isStaging ? 3 : 1, + replicas: 1, }, }, }; diff --git a/deployment/services/otel-collector.ts b/deployment/services/otel-collector.ts index dffebf7eb..9eec965cd 100644 --- a/deployment/services/otel-collector.ts +++ b/deployment/services/otel-collector.ts @@ -36,7 +36,7 @@ export function deployOTELCollector(args: { livenessProbe: '/', startupProbe: '/', exposesMetrics: true, - replicas: args.environment.podsConfig.tracingCollector.maxReplicas, + replicas: args.environment.podsConfig.tracingCollector.replicas, pdb: true, availabilityOnEveryNode: true, port: 4318,