jjcollinge / traefik-on-service-fabric

Azure Service Fabric now has support for Traefik!
MIT License
50 stars 31 forks source link

Empty Service Fabric Provider #49

Closed lasrol closed 6 years ago

lasrol commented 6 years ago

I guess I have some configuration issues, but cant seem to figure out what I have done wrong. I have added the træfik service and the endpoints seems to be working (getting a 404) when trying to go to any route.

The dashboard have a tab under Providers named "Service Fabric Provider". There is no content in the tab, so I assume it cannot find any services and/or labels?

I have also deployed a StatlessService with the current labels:

<Extension Name="Traefik">
     <Labels xmlns="http://schemas.microsoft.com/2015/03/fabact-no-schema">
         <Label Key="traefik.frontend.rule.default">Host: example.com</Label>
         <Label Key="traefik.expose">true</Label>
         <Label Key="traefik.frontend.passHostHeader">true</Label>
    </Labels>
</Extension>

I assume this should have showed up in the dashboard? Any suggestions? Seems to be able to connect to the cluster and download config if I read the log correctly.

time="2018-04-23T09:21:00Z" level=info msg="Checking service fabric config" time="2018-04-23T09:21:00Z" level=info msg="Server configuration reloaded on :8080" time="2018-04-23T09:21:00Z" level=info msg="Server configuration reloaded on :80" time="2018-04-23T09:21:00Z" level=info msg="Server configuration reloaded on :443" time="2018-04-23T09:21:10Z" level=info msg="Checking service fabric config" time="2018-04-23T09:21:10Z" level=info msg="Skipping same configuration for provider servicefabric"

jjcollinge commented 6 years ago

Hey @lasrol - what Traefik build version are you using and on what OS?

lasrol commented 6 years ago

This is from traefik version

Version: v1.6.0-rc6 Codename: tetedemoine Go version: go1.10.1 Built: 2018-04-17_11:59:31AM OS/Arch: windows/amd64

And its running as a Service Fabric cluster in azure (Windows 2016 Datacenter x64)

lawrencegripper commented 6 years ago

Morning,

There is a breaking change in v1.6 of Traefik to bring the Service Fabric provider in line with the other providers labels. As part of this change traefik.expose -> traefik.enable.

There is a PR to update the docs which got merged recently https://github.com/containous/traefik/pull/3209/files and is live in the v1.6 docs but not the main site yet https://docs.traefik.io/v1.6/configuration/backends/servicefabric/#extensions

Sorry about the change, currently keeping the docs in this repo targeting 1.5 until 1.6 is released. I've created a PR to make this more explicit in the Readme.

lasrol commented 6 years ago

Ugh, i did read that. Just diden't realise it was related. Rookie mistake. Thanks for the help, and sorry to bother you :)