[9.3] (backport #12205) kube-stack: Update OTel collector gateway to use OTEL_K8S_POD_IP instead of MY_POD_IP#12256
Merged
osullivandonal merged 1 commit into9.3from Jan 15, 2026
Merged
Conversation
…ead 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> (cherry picked from commit 6ae71f4)
8 tasks
Contributor
|
Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane) |
osullivandonal
approved these changes
Jan 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
This PR fixes the undefined environment variable
MY_POD_IPin the gateway collector configuration.The gateway collector's OTLP receivers were referencing
${env:MY_POD_IP}which is not defined, causing warning logs:2026-01-12T09:55:43.240Z warn Configuration references unset environment variable {"name": "MY_POD_IP"}
This change replaces
${env:MY_POD_IP}with${env:OTEL_K8S_POD_IP}, which is properly defined via the downward API by the OpenTelemetry Helm chart.Changes:
${env:MY_POD_IP}:4317to${env:OTEL_K8S_POD_IP}:4317${env:MY_POD_IP}:4318to${env:OTEL_K8S_POD_IP}:4318This prevents warning logs and ensures the gateway collector binds to the correct pod IP address.
Why is it important?
Currently the
kube-stacklogs a warning about an undefined env var for the gateway collector:This PR uses the correct address for the gateway,
0.0.0.0OTEL_K8S_POD_IP.The issue calls out using
OTEL_K8S_NODE_NAME, this doesn't work and causes the gateway pod to error out:The issue:
Checklist
./changelog/fragmentsusing the changelog toolDisruptive User Impact
How to test this PR locally
To test the
kube-stackupdate you can usekindand follow these instructions here.kind create clusterkubectl create namespace opentelemetry-operator-systemRelated issues
Questions to ask yourself
This is an automatic backport of pull request #12205 done by [Mergify](https://mergify.com).