-
Notifications
You must be signed in to change notification settings - Fork 247
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
nfd-worker: use single http port for metrics and healthz #1929
base: master
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for kubernetes-sigs-nfd ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
This is kinda RFC to get feedback. The http endpoints are "read-only" so I think we might as well serve them from a single port. Also, a single port consumed in host network scenarios. One motivation is to get rid of all direct gRPC dependencies, too. One caveat/note is that in it's current form this doesn't deprecate the existing command line flags or Helm values. We could do that, e.g. with some sort of extra logic and override/fallback behavior around all args ( If/when we're happy with this we can make the other daemons ( |
IMO we should not care if we expose 1 or 3 ports, there should be enough ports free on a system. Also the ports are configurable, thus it is totally fine to me if we'd keep multiple ports. Nevertheless I like the idea having a single port :)
I think it is okay to consider this as a breaking change and highlight it in the release notes. If we deprecate the ports we also have to ensure that the ports are listening and serve the correct content (i.e., both ports will handle the same). IMO the change is a good improvement to our code and the UX for the users 👍🏻 |
LGTM label has been added. Git tree hash: 8a54ab8d8a68256b9ea1ab5e21f47f677cf373f2
|
@PiotrProkop any comments? |
Always :) I prefer single port implementation as it removes some code and make overall architecture simpler. |
465c6db
to
aad0f39
Compare
To be replaced with plain http.
Use a single port for serving http. In addition to metrics we will have the healthz endpoint.
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.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ArangoGutierrez, marquiz The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
LGTM label has been added. Git tree hash: 88254734132642116c0084e16838417bb42fd4b9
|
/retest |
unhold @marquiz ?? |
Thanks for the reviews folks 🙏 I'll make some last checks on these and then unhold |
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. |
This PR drops the separate http servers for metrics and the health endpoint. In addition, ditch the grpc-health and replace it with plain http.
The PR is split into three commits:
--metrics
to--port
Use a single port for serving http. In addition to metrics we will have the healthz endpoint.