-
Notifications
You must be signed in to change notification settings - Fork 80
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 missing probes #1029
Add missing probes #1029
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1029 +/- ##
=======================================
Coverage 80.78% 80.78%
=======================================
Files 18 18
Lines 1343 1343
=======================================
Hits 1085 1085
Misses 205 205
Partials 53 53
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
/retest |
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
/hold for @nak3 to review.
I'd assume the same comments apply like in knative-extensions/net-istio#1095 (review)?
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ReToCode, skonto 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 |
pkg/generator/status_vhost.go
Outdated
@@ -54,7 +54,7 @@ func readyRoute() *route.Route { | |||
cluster := envoy.NewWeightedCluster("service_stats", 100, nil) | |||
var wrs []*route.WeightedCluster_ClusterWeight | |||
wrs = append(wrs, cluster) | |||
route := envoy.NewRoute("gateway_ready", nil, "/ready", wrs, 1*time.Second, nil, "") | |||
route := envoy.NewRoute("gateway_ready", nil, "/", wrs, 1*time.Second, nil, "") |
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.
Should we use /probe
, /kprobe
, /health
or /khealth
or something else for both readiness and liveness?
Using the root path should be fine as long as the header matching is used but I am not 100% confident if it is no side effect at all. (e.g. the total number of access to /
cannot be counted anymore.)
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.
Initially I had it like that. There is no other path to use for liveness other than ready. Right now this is using the one that envoy provide /ready.
@nak3 I update the path. Now both readiness and liveness probes use the /ready path at the admin interface. I tried to use a different path like "/health" by doing:
and although K8s allows redirects: https://github.com/kubernetes/kubernetes/blob/master/pkg/probe/http/http.go#L113
So although it works due to the warning I decided not to go that path because users may not be aware of what codes K8s allows for probes. I have also fixed the settings for the readiness, liveness so they are not the same to avoid the known issues. |
Thank you. My intention was not used the same path ( |
FYI Serving's PR merged |
/lgtm Thank you! |
* add missing probes * fixes * cleanup
* add missing probes * fixes * cleanup
Changes