-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
TCP probe the user-container from the queue-proxy before marking the pod ready. #2915
Conversation
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.
@markusthoemmes: 1 warning.
In response to this:
As we cannot easily run the TCP probe from kubernetes to check the user-container is up because of Istio interfering, this adds a TCP probe that's run as part of the queue-proxy's readinessProbe. The queue-proxy will only report itself ready once the TCP probe to the user-container has succeeded.
This also externalizes the health state as kept in the queue-proxy to enable testability of that code.
Fixes #2912
TODO:
- Tests
Release Note
Hardened container startup and actually check the user-container for general availability.
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/test-infra repository.
9a0d6b3
to
17bb88d
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.
Thanks!
8f97764
to
5a80457
Compare
Finally the thing works! /test pull-knative-serving-integration-tests |
/assign @tcnghia |
@vagababov thanks for your feedback, addressed all your comments I believe. |
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.
Just nits. Thanks for bearing with me :-)
/test pull-knative-serving-integration-tests |
…pod as ready. As we cannot easily run the TCP probe from kubernetes to check the user-container is up because of Istio interfering, this adds a TCP probe that's run as part of the queue-proxy's readinessProbe. The queue-proxy will only report itself ready once the TCP probe to the user-container has succeeded. This also externalizes the health state as kept in the queue-proxy to enable testability of that code.
c6c91f2
to
92dfc1d
Compare
The following is the coverage report on pkg/.
|
TestRunLatestService flake /test pull-knative-serving-integration-tests |
1 similar comment
TestRunLatestService flake /test pull-knative-serving-integration-tests |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: markusthoemmes, tcnghia, vagababov 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 |
As we cannot easily run the TCP probe from kubernetes to check the user-container is up because of Istio interfering, this adds a TCP probe that's run as part of the queue-proxy's readinessProbe. The queue-proxy will only report itself ready once the TCP probe to the user-container has succeeded.
This also externalizes the health state as kept in the queue-proxy to enable testability of that code.
Fixes #2912
Release Note