fix(deployment): use replicas=1 for otel-collector and allow it to scale when needed (#7929)

This commit is contained in:
Dotan Simha 2026-03-30 13:09:10 +03:00 committed by GitHub
parent 72cf5b8659
commit aa51ecd0de
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View file

@ -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,
},
},
};

View file

@ -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,