Kubernetes Integration - DNS Issue

Hello,

I noticed part of the K8S integration is grabbing from:


https://${env.NODE_NAME}:10250

The issue is that this is dependent on DNS Resolution and leads to errors:
> error making http request: Get "https://<redacted>:10250/stats/summary": lookup <redacted>:53: no such host

What can I use instead? I tried ${env.NODE_IP} but that didn't work lol

I see that this environment variable comes not from Kubernetes directly but from the elastic agent install yaml


Ughhh!!!

So I will test out adding NODE_IP and fieldPath: status.hostIP

It worked!

By adding:


Then updating the Kubernetes integration to use
https://${env.NODE_IP}:10250

I know have data coming in