Closed lurock closed 4 years ago
Yes this is a bug in the current provider. #42 covers this in some more detail.
One option to workaround this limitation is to create a custom template which uses the getNamedEndpoint
function. This can be used to return a specific endpoint for a service.
I think that with this set to use WebPort
as the endpoint name the healthcheck and service should behave as normal but this is something that would need to be tested.
If you'd be interested in submitting a PR to look at addressing this issue for others too that would be awesome and very well received. The first steps would be to comment on #42 with a proposal for how you'd like to approach the fix and then we can do a quick review before you start working.
@lurock Thanks for the PR (#47) just referencing here to keep track.
Do you want to request a feature or report a bug?
Bug
What did you do?
I setup service fabric configuration with two listening endpoints. One for the web endpoint and one for a healthcheck endpoint. Here is the service fabric configuration with Traefik labels:
What did you expect to see?
I expect Traefik to serve up the WebPort endpoint.
What did you see instead?
What happens is Traefik sometimes serves up the WebPort endpoint and then sometimes serves up the HealthCheckPort endpoint. It appears that the Traefik Label "traefik.portName" is having no affect over selecting the endpoint to serve web traffic through.
Output of
traefik version
: (What version of Traefik are you using?)v1.7.6
What is your environment & configuration (arguments, toml, provider, platform, ...)?
Running Traefik as a guest executable on Service Fabric. Here is my toml configuration: