Skip to content

Commit 31d4390

Browse files
mergify[bot]rogercollandrzej-stencel
authored
fix: set gateway k8s replicas spec (#7011) (#7021)
* fix: set gateway k8s replicas spec * chore: add fragments (cherry picked from commit c356857) Co-authored-by: Roger Coll <[email protected]> Co-authored-by: Andrzej Stencel <[email protected]>
1 parent e50cc16 commit 31d4390

File tree

3 files changed

+35
-2
lines changed

3 files changed

+35
-2
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Kind can be one of:
2+
# - breaking-change: a change to previously-documented behavior
3+
# - deprecation: functionality that is being removed in a later release
4+
# - bug-fix: fixes a problem in a previous version
5+
# - enhancement: extends functionality but does not break or fix existing behavior
6+
# - feature: new functionality
7+
# - known-issue: problems that we are aware of in a given version
8+
# - security: impacts on the security of a product or a user’s deployment.
9+
# - upgrade: important information for someone upgrading from a prior version
10+
# - other: does not fit into any of the other categories
11+
kind: feature
12+
13+
# Change summary; a 80ish characters long description of the change.
14+
summary: set replicas for gateway collector
15+
16+
# Long description; in case the summary is not enough to describe the change
17+
# this field accommodate a description without length limits.
18+
# NOTE: This field will be rendered only for breaking-change and known-issue kinds at the moment.
19+
#description:
20+
21+
# Affected component; usually one of "elastic-agent", "fleet-server", "filebeat", "metricbeat", "auditbeat", "all", etc.
22+
component: "elastic-agent"
23+
24+
# PR URL; optional; the PR number that added the changeset.
25+
# If not present is automatically filled by the tooling finding the PR where this changelog fragment has been added.
26+
# NOTE: the tooling supports backports, so it's able to fill the original PR number instead of the backport PR number.
27+
# Please provide it if you are adding a fragment for a different PR.
28+
pr: https://github.com/elastic/elastic-agent/pull/7011
29+
30+
# Issue URL; optional; the GitHub issue related to this changeset (either closes or is part of).
31+
# If not present is automatically filled by the tooling with the issue linked to the PR number.
32+
#issue: https://github.com/owner/repo/1234

deploy/helm/edot-collector/kube-stack/managed_otlp/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -526,6 +526,7 @@ collectors:
526526
# forwarding telemetry to an Elasticsearch endpoint.
527527
gateway:
528528
suffix: gateway
529+
replicas: 2
529530
autoscaler:
530531
minReplicas: 2 # Start with at least 2 replicas for better availability.
531532
maxReplicas: 5 # Allow more scale-out if needed.

testing/integration/otel_helm_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,9 @@ func TestOtelKubeStackHelm(t *testing.T) {
109109
// (1 EDOT collector pod per node)
110110
// - A Cluster wide Deployment to collect K8s metrics and
111111
// events (1 EDOT collector pod per cluster)
112-
// - One Gateway pod to collect, aggregate and forward
112+
// - Two Gateway replicas to collect, aggregate and forward
113113
// telemetry.
114-
k8sStepCheckRunningPods("app.kubernetes.io/managed-by=opentelemetry-operator", 3, "otc-container"),
114+
k8sStepCheckRunningPods("app.kubernetes.io/managed-by=opentelemetry-operator", 4, "otc-container"),
115115
},
116116
},
117117
}

0 commit comments

Comments
 (0)