-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
add functionality to scrape pods per kubernetes node #6969
Conversation
@danielnelson : please review my PR, thank you |
@jackzampolin : Hi, Im tagging you since I see you are the primary moderator on community.influxdata.com and I thought you might have some suggestion/s . Would you know who could possibly help with PR review ? |
@danielnelson : hi would it be possible for you to take a look at this PR and let me know your thoughts on the same. |
Code looks good but I do feel that this method is very specific to your case and that we should try to generalize it more. I'm not a Kubernetes expert, but perhaps we could provide access to the labelSelector option when starting the watch. With this we could watch any custom subset of pods and as a bonus it should perform better since it doesn't need to skip over unmatched pods. However, this would require having the right labels set, maybe this technique can work: https://stackoverflow.com/questions/40131682/how-to-set-label-to-kubernetes-node-at-creation-time |
@danielnelson : thank you for the feedback.
|
That sounds great, thanks. |
@danielnelson : As per our discussion above, Ive updated the code to support Kubernetes label and field selectors. Please review and let me know your thoughts. |
@danielnelson : would it be possible for you to take a look at the PR, which is updated as per our conversation about using Kubernetes label and field selectors? |
@danielnelson : The functionality implemented here is important for adoption within our org, as such please provide guidance on the path forward on this PR. |
…ADME, use Go error string style
@danielnelson : I have made the changes as requested, please review. |
@danielnelson : updated the PR with changes as requested, please review. |
Required for all PRs:
Fixes #6950