Skip to content

Commit 6ae71f4

Browse files
osullivandonalswiatekmismisepaulgithub-actions[bot]michalpristas
authored
kube-stack: Update OTel collector gateway to use OTEL_K8S_POD_IP instead of MY_POD_IP (#12205)
* Update OTel collector gateway to use 0.0.0.0 instead of MY_POD_IP This allows the gateway to listen on all network interfaces for traffic, this follows the same pattern that the daemon collector uses. This prevents warnings being logged in k8s * Add changelog for OTel gateway endpoint update * Update gateway collector binding address to use specific K8s OTEL_K8S_POD_IP This is done as using 0.0.0.0 can be more risky in the case of DDOS attacks, see https://opentelemetry.io/docs/security/config-best-practices/#protect-against-denial-of-service-attacks * Update OTel gateway otlp endpoint to be OTEL_K8S_POD_IP in k8s tests * Update changelog with OTEL_K8S_POD_IP for kube-stack gateway OTLP update * Revert update to k8s integration test for OTel gateway These tests are automatically updated from upstream * docs: update security url to link to central policy (#12241) * docs: update security url to link to central policy * docs: update security url to link to central policy * [main][Automation] Update elastic/beats to eff88abc6dc8 (#12237) Co-authored-by: swiatekm <93588780+swiatekm@users.noreply.github.com> Co-authored-by: Mikołaj Świątek <mail@mikolajswiatek.com> * Update elastic-agent-libs 0.31.0 -> 0.32.0 (#12240) Co-authored-by: Mikołaj Świątek <mail@mikolajswiatek.com> * List available rollbacks (#11751) * add new messages and operation * List available rollbacks from CLI * Add output flag for human, json, yaml * assert list rollback command in standalone manual rollback tests * bump beats * fixup! assert list rollback command in standalone manual rollback tests * fixup! fixup! assert list rollback command in standalone manual rollback tests --------- Co-authored-by: Eric Beahan <eric.beahan@elastic.co> * [main][Automation] Update elastic/beats to 990735bb782a (#12252) Co-authored-by: swiatekm <93588780+swiatekm@users.noreply.github.com> --------- Co-authored-by: Mikołaj Świątek <mail@mikolajswiatek.com> Co-authored-by: Paul McCann <paul.mccann@elastic.co> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: swiatekm <93588780+swiatekm@users.noreply.github.com> Co-authored-by: Michal Pristas <michal.pristas@elastic.co> Co-authored-by: Paolo Chilà <paolo.chila@elastic.co> Co-authored-by: Eric Beahan <eric.beahan@elastic.co>
1 parent 494ff61 commit 6ae71f4

File tree

4 files changed

+51
-6
lines changed

4 files changed

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

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,9 +231,9 @@ collectors:
231231
otlp:
232232
protocols:
233233
grpc:
234-
endpoint: ${env:MY_POD_IP}:4317
234+
endpoint: ${env:OTEL_K8S_POD_IP}:4317
235235
http:
236-
endpoint: ${env:MY_POD_IP}:4318
236+
endpoint: ${env:OTEL_K8S_POD_IP}:4318
237237
processors: {}
238238
exporters:
239239
debug:

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -533,9 +533,9 @@ collectors:
533533
otlp:
534534
protocols:
535535
grpc:
536-
endpoint: ${env:MY_POD_IP}:4317
536+
endpoint: ${env:OTEL_K8S_POD_IP}:4317
537537
http:
538-
endpoint: ${env:MY_POD_IP}:4318
538+
endpoint: ${env:OTEL_K8S_POD_IP}:4318
539539
processors: {}
540540
exporters:
541541
debug:

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -538,9 +538,9 @@ collectors:
538538
otlp:
539539
protocols:
540540
grpc:
541-
endpoint: ${env:MY_POD_IP}:4317
541+
endpoint: ${env:OTEL_K8S_POD_IP}:4317
542542
http:
543-
endpoint: ${env:MY_POD_IP}:4318
543+
endpoint: ${env:OTEL_K8S_POD_IP}:4318
544544
processors:
545545
batch:
546546
send_batch_size: 1000

0 commit comments

Comments
 (0)