WARN log metricbeat pods (on kubernetes) : DNS lookup failure "k8s-node4": lookup k8s-node4 on 10.96.0.10:53: no such host WARN log metricbeat pods (on kubernetes) : DNS lookup failure "k8s-node4": lookup k8s-node4 on 10.96.0.10:53: no such host kubernetes kubernetes

WARN log metricbeat pods (on kubernetes) : DNS lookup failure "k8s-node4": lookup k8s-node4 on 10.96.0.10:53: no such host


That kind of error indicates that you should look into your DNS policy. More details can be found here. In short, you need this config to be added:

hostNetwork: true  dnsPolicy: ClusterFirstWithHostNet  

Please let me know if that helped.


Using helm3, enabling hostNetwork in values.yml solved the problem

daemonset:  enabled: true  hostNetworking: true