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

Traefik creates two routes from stateless services to same backend services #18

Open
derwee opened this issue May 19, 2022 · 0 comments

Comments

@derwee
Copy link

derwee commented May 19, 2022

Good day,

I'm having an issue where I have deployed two different stateless services to fabric.

Both with similar extension config, with the only difference being the healthcheck.path
/routing/ping
customer/ping

When I look at the Traefik dash I can see two routes
http://myfabricservice.com:8880/Monitoring/Monitoring.Api/Routing/ping
http://myfabricservice.com:8880/CustomerService/CustomerService.Api/v1/customer/ping

But on inspecting the servers and ports for both of these routes I can see that both routes are pointing to the monitoring service and also that the healthcheck path for the customer service is /Routing/ping and not v1/customer/ping

Is anybody else sitting with this issue or I'm misconfiguring traefik and/or the plugin.

I have a 5 node cluster and my extension xml looks like this:

<Extensions>
	<Extension Name="traefik">
		<Labels xmlns="http://schemas.microsoft.com/2015/03/fabact-no-schema">
			<Label Key="traefik.http.enable">true</Label>
			<Label Key="traefik.http.entrypoints">web</Label>
			<Label Key="traefik.http.loadbalancer.passhostheader">true</Label>
			<Label Key="traefik.http.loadbalancer.healthcheck.path">/Routing/ping</Label>
			<Label Key="traefik.http.loadbalancer.healthcheck.interval">10s</Label>
			<Label Key="traefik.http.loadbalancer.healthcheck.scheme">http</Label>
			<Label Key="traefik.http.loadbalancer.stickiness">true</Label>
			<Label Key="traefik.http.loadbalancer.stickiness.secure">true</Label>
			<Label Key="traefik.http.loadbalancer.stickiness.httpOnly">true</Label>
			<Label Key="traefik.http.loadbalancer.stickiness.sameSite">none</Label>
			<Label Key="traefik.http.loadbalancer.stickiness.cookieName">stickycookie</Label>
		</Labels>
	</Extension>
</Extensions>
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

No branches or pull requests

1 participant