-
Notifications
You must be signed in to change notification settings - Fork 339
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
fix(kuma-cp) probes without inbound #1199
Conversation
Signed-off-by: Ilya Lobkov <ilya.lobkov@konghq.com>
Signed-off-by: Ilya Lobkov <ilya.lobkov@konghq.com>
Signed-off-by: Ilya Lobkov <ilya.lobkov@konghq.com>
Signed-off-by: Ilya Lobkov <ilya.lobkov@konghq.com>
if portSet[endpoint.InboundPort] { | ||
virtualHostBuilder.Configure( | ||
envoy_routes.Route(endpoint.Path, endpoint.InboundPath, names.GetLocalClusterName(endpoint.InboundPort), true)) | ||
} else { |
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.
would be great to have a comment with an explanation of why. Something like:
On Kubernetes we are overriding probes for every container, but there is no guarantee that given probe will have an equivalent in inbound interface (ex. sidecar that is not selected by any service). In this situation there is no local cluster therefore we are sending redirect to a real destination. System responsible for using virtual probes needs to support redirect (kubelet on K8S supports it).
Signed-off-by: Ilya Lobkov <ilya.lobkov@konghq.com>
Signed-off-by: Ilya Lobkov <ilya.lobkov@konghq.com>
Do `redirect` for probes that don't have inbound Signed-off-by: Ilya Lobkov <ilya.lobkov@konghq.com> (cherry picked from commit f458cf0)
Summary
Do
redirect
for probes that don't have inbound