Skip to content
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

Merged
merged 6 commits into from
Nov 23, 2020
Merged

Conversation

lobkovilya
Copy link
Contributor

Summary

Do redirect for probes that don't have inbound

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>
@lobkovilya lobkovilya requested a review from a team as a code owner November 23, 2020 14:12
if portSet[endpoint.InboundPort] {
virtualHostBuilder.Configure(
envoy_routes.Route(endpoint.Path, endpoint.InboundPath, names.GetLocalClusterName(endpoint.InboundPort), true))
} else {
Copy link
Contributor

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>
@nickolaev nickolaev merged commit f458cf0 into master Nov 23, 2020
@nickolaev nickolaev deleted the fix/probes-without-inbound branch November 23, 2020 15:00
mergify bot pushed a commit that referenced this pull request Nov 23, 2020
Do `redirect` for probes that don't have inbound

Signed-off-by: Ilya Lobkov <ilya.lobkov@konghq.com>
(cherry picked from commit f458cf0)
nickolaev pushed a commit that referenced this pull request Nov 23, 2020
Do `redirect` for probes that don't have inbound

Signed-off-by: Ilya Lobkov <ilya.lobkov@konghq.com>
(cherry picked from commit f458cf0)

Co-authored-by: Ilya Lobkov <ilya.lobkov@konghq.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants