Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cherry-pick #17469 to 7.x: Replace HOSTNAME with NODE_NAME when accessing Kubelet API #17564

Merged
merged 1 commit into from
Apr 7, 2020

Conversation

ChrsMark
Copy link
Member

@ChrsMark ChrsMark commented Apr 7, 2020

Cherry-pick of PR #17469 to 7.x branch. Original message:

Follow up of #16063.

More info on elastic/helm-charts#471 (comment).

When hostNetwork: true these 2 variables are identical:

[root@gke-cluster-1-default-pool-d5378bbe-9kxv metricbeat]# env | grep NODE_NAME
NODE_NAME=gke-cluster-1-default-pool-d5378bbe-9kxv
[root@gke-cluster-1-default-pool-d5378bbe-9kxv metricbeat]# env | grep HOSTNAME
HOSTNAME=gke-cluster-1-default-pool-d5378bbe-9kxv

When not hostNetwork: true these 2 variables are like:

[root@metricbeat-q2dgr metricbeat]# env | grep NODE
NODE_NAME=gke-cluster-1-default-pool-d5378bbe-rvgw
[root@metricbeat-q2dgr metricbeat]# env | grep HOST
HOSTNAME=metricbeat-q2dgr

@ChrsMark ChrsMark self-assigned this Apr 7, 2020
@ChrsMark ChrsMark added the Team:Platforms Label for the Integrations - Platforms team label Apr 7, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/integrations-platforms (Team:Platforms)

@ChrsMark ChrsMark requested review from a team April 7, 2020 11:03
Copy link
Contributor

@ycombinator ycombinator left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Backport LGTM.

@ChrsMark ChrsMark merged commit 6d6111b into elastic:7.x Apr 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport review Team:Platforms Label for the Integrations - Platforms team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants