You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 22, 2022. It is now read-only.
Now the issue is that the prometheus server can only communicate with the node_exporter on node-C. Is this expected behavior? Is there something incorrect about how digital ocean networks between nodes or should the node_exporters be assigning themselves ip addresses that are reachable across the cluster rather than the node's internal-ip?
The text was updated successfully, but these errors were encountered:
After looking into it further this, for better or worse, is simply how digital ocean networking works at the moment within clusters. For now I am just running the helm chart with node_exporters disabled:
I got a workaround for this: Let your node-exporters have different IP than the host they are running on. I found that on Digital Ocean kubernetes environment:
Pod cannot access to Node IPs (except for the node the pod is running on)
Pod can access to Pod IPs (even though target pods are running on different nodes)
This can be done by setting hostNetwork: false I believe.
(note it has a caveat that your "node" metrics will have IP of a pod, which can change upon pod restarts)
This happens in digital ocean's managed kubernetes environment. They use flannel I believe.
helm install --name prometheus-service stable/prometheus
Results in node_exporters having an ip address that matches the internal-ip address of the node it runs on as reported by kubectl get nodes -o wide.
Note that node-C is 10.136.113.228.
prometheus-service-node-exporter-z is running on node-C.
The prometheus server is also on node-C.
Now the issue is that the prometheus server can only communicate with the node_exporter on node-C. Is this expected behavior? Is there something incorrect about how digital ocean networks between nodes or should the node_exporters be assigning themselves ip addresses that are reachable across the cluster rather than the node's internal-ip?
The text was updated successfully, but these errors were encountered: