-
Notifications
You must be signed in to change notification settings - Fork 573
Fix Linux Node Exporter #3305
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
base: master
Are you sure you want to change the base?
Fix Linux Node Exporter #3305
Conversation
Skipping CI for Draft Pull Request. |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: MikeZappa87 The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
hostPID: true | ||
containers: | ||
- name: node-exporter | ||
image: quay.io/prometheus/node-exporter:latest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Find a tag, not latest
image: quay.io/prometheus/node-exporter:latest | ||
args: | ||
- "--path.procfs=/host/proc" | ||
- "--path.sysfs=/host/sys" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Figure out what people want to collect
a90acf5
to
6f079e3
Compare
6f079e3
to
4f8da95
Compare
4f8da95
to
c627004
Compare
numMasters := 0 | ||
for _, node := range nodes { | ||
node := node | ||
if util.LegacyIsMasterNode(&node) || util.IsControlPlaneNode(&node) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do cloud environments even give access to the control plane nodes?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can understand the motivation for this to be a static pod however should we maintain this requirement? It's not hard to keep the daemonset and the static pods but they should be enabled with separate flags. What do we gain with these being static pods if the rest of the pods haven't been scheduled yet such as prometheus? It's probably safe to just use the daemonset.
@wojtek-t do you have any thoughts here? |
0a13adb
to
9494254
Compare
9494254
to
b9e328f
Compare
PR needs rebase. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
What type of PR is this?
What this PR does / why we need it:
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer: