I am testing Traefik 2.0 in Azure Service Fabric, i am getting duplicate entry in HTTP routers, Services and Middlewares. Here with sharing the traefik.yaml and dyn.yaml which used. Please let me know any additional configuration required
traefik.yaml
global:
checkNewVersion: false
sendAnonymousUsage: false
defaultEntryPoints : "web"
entryPoints:
web:
address: :443
http:
middlewares:
- test-errorpage@file
ping:
entryPoint: "web"
api:
dashboard: true
log:
level: DEBUG
filePath: "log/traefik.log"
format: json
serversTransport:
insecureSkipVerify: true
providers:
file:
directory: dyn.yaml
watch: true
dyn.yaml
http:
routers:
dashboard:
rule: PathPrefix(`/api`) || PathPrefix(`/dashboard`)
service: api@internal
middlewares:
test-errorpage:
errors:
status:
- 400
- 402-599
service: serviceError
query: "/Maintenance"
services:
serviceError:
loadBalancer:
sticky:
cookie:
httpOnly: true
name: stickycookie
sameSite: none
secure: true
servers:
- url: https://demo.com/Maintenance/
tls:
certificates:
- certFile: "./traefik.crt"
keyFile: "./traefik.key"
- certFile: ./sfc.crt
keyFile: ./sfc.key
options:
foobar:
minVersion: VersionTLS12
cipherSuites:
- TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
- TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305
- TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305
- TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256
- TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
Dashboard Screenshots
Pinger ServiceManifest
<Extensions>
<Extension Name="traefik">
<Labels xmlns="http://schemas.microsoft.com/2015/03/fabact-no-schema">
<Label Key="traefik.enable">true</Label>
<Label Key="traefik.http.PingerEndpoint0">true</Label>
<Label Key="traefik.http.PingerEndpoint0.router.rule">PathPrefix(`/pinger`)</Label>
<Label Key="traefik.http.PingerEndpoint0.middlewares.1.stripPrefix.prefixes">/pinger</Label>
<Label Key="traefik.http.PingerEndpoint0.router.tls.options">foobar</Label>
<Label Key="traefik.http.PingerEndpoint0.service.loadbalancer.healthcheck.path">/</Label>
<Label Key="traefik.http.PingerEndpoint0.service.loadbalancer.healthcheck.interval">10s</Label>
<Label Key="traefik.http.PingerEndpoint0.service.loadbalancer.healthcheck.scheme">http</Label>
</Labels>
</Extension>