-
Notifications
You must be signed in to change notification settings - Fork 16
http-route does not support Consul cluster peering #593
Comments
Hi @vvarga007 👋 There are Kubernetes-specific instructions here for routing to a service in a peer. It requires the use of the |
@nathancoleman I don't use Kubernetes. I use Nomad. |
I believe you can accomplish this in Consul today using a Service Resolver configuration entry and, more specifically, its ability to redirect to a peer. If Kind = "service-resolver"
Name = "hashicups-frontend"
Redirect {
Service = "hashicups-frontend"
Peer = "my-peer"
} and then your Rules = [
{
Matches = [
{
Path = {
Match = "prefix"
Value = "/"
}
}
]
Services = [
{
Name = "hashicups-frontend"
},
]
},
] Noting that you'll need intentions in place to allow this, as mentioned in the docs linked above. Let me know if this is helpful for you or not. If you like, I can put together a config bundle of what I'm describing -- just let me know 😃 |
Yes, it is possible with the service resolver, but I have to create a fake/virtual service. |
Ah, I see your point. So this issue isn't so much that you can't accomplish the thing but more that it could be easier with some UX tweaks, right? |
Yes, it is more like a feature request. |
@vvarga007 excellent! This repo will soon be marked deprecated as the api-gateway functionality has been integrated into hashicorp/consul and hashicorp/consul-k8s. Nothing required on your end, but a heads up that I expect this feature request to be migrated to the consul repo in the near-ish future. |
http-route configuration entry does not support Consul cluster peering.
Feature Description
I would like to use the API gateway for imported services. Imported services via cluster peering.
The documentation
does not say anything about cluster peering.
Adding "Peer" directive would be nice, something like this:
The text was updated successfully, but these errors were encountered: