Hi,
I've been testing migrating from Traefik v2.0 to Traefik 2.2 which i'm using as an Ingress controller for a Kubernetes setup. There are no changes in my resource definition beyond the version number being used. So i'm starting Traefik pods with the config:
--accesslog
--ping
--api.insecure
--api.dashboard
--entrypoints.http.Address=:8000
--entrypoints.traefik.Address=:10254
--providers.kubernetesingress
--providers.kubernetesingress.ingressclass=traefik-refapp-blue
--providers.kubernetesingress.ingressendpoint.publishedservice=experiment/refapp-blue-ing
--providers.kubernetesingress.namespaces=experiment
--metrics.prometheus
--log.level=DEBUG
With v2.0 my logs say
time="2020-04-28T10:54:21Z" level=info msg="Starting provider *ingress.Provider {"namespaces":["experiment"],"ingressClass":"traefik-refapp-blue","ingressEndpoint":{"publishedService":"experiment/refapp-blue-ing"}}"
time="2020-04-28T10:54:21Z" level=debug msg="Using Ingress label selector: """ providerName=kubernetes
time="2020-04-28T10:54:21Z" level=info msg="ingress label selector is: """ providerName=kubernetes
time="2020-04-28T10:54:21Z" level=info msg="Creating in-cluster Provider client" providerName=kubernetes
time="2020-04-28T10:54:21Z" level=debug msg="Start TCP Server" entryPointName=http
time="2020-04-28T10:54:21Z" level=debug msg="Skipping status update on ingress experiment/refapp-blue-app"
time="2020-04-28T10:54:21Z" level=debug msg="Configuration received from provider kubernetes: {"http":{"routers":{"":{"service":"experiment-refapp-blue-app-80","rule":"PathPrefix(/
)"}},"services":{"experiment-refapp-blue-app-80":{"loadBalancer":{"servers":[{"url":"http://10.10.196.11:8000"},{"url":"http://10.10.27.37:8000"}],"passHostHeader":true}}}},"tcp":{}}" providerName=kubernetes
The matching logs when I boot v2.2 are:
time="2020-04-28T10:52:27Z" level=info msg="Starting provider *ingress.Provider {"namespaces":["experiment"],"ingressClass":"traefik-refapp-blue","ingressEndpoint":{"publishedService":"experiment/refapp-blue-ing"}}"
time="2020-04-28T10:52:27Z" level=debug msg="Using Ingress label selector: """ providerName=kubernetes
time="2020-04-28T10:52:27Z" level=info msg="ingress label selector is: """ providerName=kubernetes
time="2020-04-28T10:52:27Z" level=info msg="Creating in-cluster Provider client" providerName=kubernetes
time="2020-04-28T10:52:27Z" level=info msg="Starting provider *traefik.Provider {}"
time="2020-04-28T10:52:27Z" level=debug msg="Configuration received from provider internal: {"http":{"routers":{"api":{"entryPoints":["traefik"],"service":"api@internal","rule":"PathPrefix(/api
)","priority":2147483646},"dashboard":{"entryPoints":["traefik"],"middlewares":["dashboard_redirect@internal","dashboard_stripprefix@internal"],"service":"dashboard@internal","rule":"PathPrefix(/
)","priority":2147483645},"ping":{"entryPoints":["traefik"],"service":"ping@internal","rule":"PathPrefix(/ping
)","priority":2147483647},"prometheus":{"entryPoints":["traefik"],"service":"prometheus@internal","rule":"PathPrefix(/metrics
)","priority":2147483647}},"services":{"api":{},"dashboard":{},"noop":{},"ping":{},"prometheus":{}},"middlewares":{"dashboard_redirect":{"redirectRegex":{"regex":"^(http:\\/\\/[^:\\/]+(:\\d+)?)\\/$","replacement":"${1}/dashboard/","permanent":true}},"dashboard_stripprefix":{"stripPrefix":{"prefixes":["/dashboard/","/dashboard"]}}}},"tcp":{},"tls":{}}" providerName=internal
I never get configuration received from provider kubernetes and I can't understand why