Skip to content

Commit

Permalink
Set hostNetwork: true in node-exporter ds (#59)
Browse files Browse the repository at this point in the history
This commit configures node-exporter pods in the node-exporter
daemonset to be set to the host network, allowing for the host's
network metrics te be recorded rather than the node-exporter
pod's network metrics to be recorded.

For more information: https://stackoverflow.com/questions/62606739/network-transfer-speeds-in-mb-s-using-prometheus-grafana

Signed-off-by: Ryan Drew <[email protected]>

Signed-off-by: Ryan Drew <[email protected]>
  • Loading branch information
learnitall authored Oct 12, 2022
1 parent 57252f6 commit c3522f5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kustomize/node-exporter/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ spec:
app.kubernetes.io/component: exporter
app.kubernetes.io/name: node-exporter
spec:
hostNetwork: true
nodeSelector:
role.scaffolding/monitored: "true"
containers:
Expand Down

0 comments on commit c3522f5

Please sign in to comment.