-
Notifications
You must be signed in to change notification settings - Fork 79
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 health probes to API server #485
Conversation
Skipping CI for Draft Pull Request. |
/kind feature |
6e2f275
to
f684f57
Compare
/ok-to-test |
f684f57
to
3095bb2
Compare
This adds gRPC and REST supported health endpoint to monitor server health, as well as individual service health. Also add retires for connecting to database.
3095bb2
to
72676b8
Compare
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.
Generally looks good, just one question about using HTTPS for health checks.
httpGet: | ||
path: /healthz | ||
port: 8080 | ||
scheme: HTTPS |
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.
Does using HTTPS present an issue if the apiserver uses a certificate that is not globally trusted? This is the most likely deployment scenario, where the apiserver uses a cluster-signed/self-signed certificate, and the ingress re-encrypts the traffic.
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.
@adambkaplan It doesn't create an issue, because the Kubelet sends an HTTPS request skipping the certificate verification.
/approve Accepting as a feature. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: adambkaplan 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 |
Proposing updated release note:
|
The change is LGTM, but lets give a chance to other people to review. |
/lgtm |
/test pull-tekton-results-integration-tests |
Changes
Fixes #280
Fixes #414
This PR adds gRPC and REST health probe endpoints to the API server and configures the liveliness, readiness and startup probe for the API server deployment. Also adds retries for connecting to database to prevent unnecessary pod restarts.
Submitter Checklist
These are the criteria that every PR should meet, please check them off as you review them:
/kind <type>
. Valid types are bug, cleanup, design, documentation, feature, flake, misc, question, tepRelease Notes