Skip to content
This repository has been archived by the owner on Jul 11, 2023. It is now read-only.

multicluster: Resolve multicluster services via /etc/hosts #3788

Merged
merged 1 commit into from
Jul 19, 2021

Conversation

draychev
Copy link
Contributor

This is a hack, which allows services not DNS resolvable by Kube DNS to pass the gethostbyname stage of cURL, and offload the rest to Envoy, which will know how to handle the call.

The IP address for the hosts bookstore.bookstore.svc.cluster.alpha and bookstore.bookstore.svc.cluster.beta does not really matter.

Signed-off-by: Delyan Raychev [email protected]

@draychev draychev marked this pull request as ready for review July 19, 2021 21:02
@draychev draychev requested a review from a team as a code owner July 19, 2021 21:02
# This is used for Multicluster environment demos,
# where the bookstore will try to resolve these 2 hosts.
hostAliases:
- ip: 127.0.0.1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this only work for Kind demo?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It will work on any compliant Kubernetes distro.

@draychev draychev merged commit 7a2c238 into openservicemesh:main Jul 19, 2021
@draychev draychev deleted the multicluster-17 branch July 19, 2021 23:12
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants