# Skipping empty Configuration for provider consul

**URL:** <https://community.traefik.io/t/skipping-empty-configuration-for-provider-consul/5588>\
**Category:** Traefik v2\
**Tags:** kv, kubernetes-crd\
**Created:** [April 20, 2020, 10:08am UTC](https://community.traefik.io/t/skipping-empty-configuration-for-provider-consul/5588 "2020-04-20T10:08:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bvivi57](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/bvivi57/32/1939_2.png) [@bvivi57](https://community.traefik.io/u/bvivi57)\
**Post date:** [April 20, 2020, 10:08am UTC](https://community.traefik.io/t/skipping-empty-configuration-for-provider-consul/5588/1 "2020-04-20T10:08:29Z")

</div>

Hi

With the release of traefik 2.2 I wanted to retry the key/value configuration with a consul cluster.

I have a kubernetic test cluster in which I have deployed traefik and consul.

```auto
apiVersion: apps/v1
kind: DaemonSet
metadata:
 name: dae-traefik-ingress-controller-lan-prd 
 namespace: prd-lan-coolcorp
 labels:
   k8s-app: traefik-ingress-lb-prd-lan
   kubernetes.io/cluster-service: "true"
spec:
 selector:
   matchLabels:
      k8s-app: traefik-ingress-lb-prd-lan
 template:
   metadata:
     namespace: prd-lan-coolcorp
     labels:
       k8s-app: traefik-ingress-lb-prd-lan
       name: traefik-ingress-lb-prd-lan
   spec:
     hostNetwork: true
     dnsPolicy: ClusterFirstWithHostNet
     serviceAccountName: sva-traefik-ingress-controller
     terminationGracePeriodSeconds: 60
     tolerations:
     - key: node-role.kubernetes.io/master
       effect: NoSchedule
     containers:
     - image: traefik:v2.2.0
       name: traefik-ingress-lb-prd-lan
       imagePullPolicy: Always
       volumeMounts:
         - mountPath: "/etc/static_certs"
           name: traefik-cfg-ro
         - mountPath: "/etc/traefik/"
           name: traefik-certif-rw 
         - mountPath: "/etc/dynamic_certs"
           name: traefik-certif-ro    
       resources:
         requests:
           cpu: 100m
           memory: 20Mi
       args:
       - --providers.kubernetescrd
       - --entrypoints.web.address=:80
       - --entrypoints.websecure.address=:443
       - --entrypoints.sftp.address=:2222
      # - --api
       - --api.insecure
       - --log.level=DEBUG
       - --providers.file.directory=/etc/traefik/
       - --providers.consul.endpoints=svc-consul-for-traefik:8500
       - --providers.consul.rootkey=traefik
       #- --providers.consul.tls.insecureSkipVerify=true
      # env: 
      # - name: WATCH_NAMESPACE
      # value: "prd-lan-coolcorp"
     volumes:
     - name: traefik-cfg-ro
     - name: traefik-certif-ro
     - name: traefik-certif-rw

```

Traefik is functioning properly. I have access to the dashboard. I have created a tree structure in consul as follows

traefik  
entryPoints  
streaming  
address :1704/udb

My new entrypoint is never created. In the traefik logs I have this message

```auto
time="2020-04-20T09:52:52Z" level=debug msg="Configuration received from provider consul: {}" providerName=consul
time="2020-04-20T09:52:52Z" level=info msg="Skipping empty Configuration for provider consul" providerName=consul

```

I don't understand why Traefik is retrieving an empty configuration. If I run curl commands from a container to query the consul cluster, I get results.

---

<div class="post-metadata">

**Author:** ![bvivi57](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/bvivi57/32/1939_2.png) [@bvivi57](https://community.traefik.io/u/bvivi57)\
**Post date:** [April 27, 2020, 11:59am UTC](https://community.traefik.io/t/skipping-empty-configuration-for-provider-consul/5588/2 "2020-04-27T11:59:56Z")

</div>

Hi

I redid the whole setup. The problem remains the same, each time Traefik considers that the configuration proposed by consul is empty.

I tried the following in consul

```auto
traefik
   entrypoints
       test
           address :1704/udp

```

```auto
traefik
   log
       level INFO

```

I'm probably missing something, but I can't figure it out.

---

<div class="post-metadata">

**Author:** ![ldez](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/ldez/32/5_2.png) [@ldez](https://community.traefik.io/u/ldez)\
**Post date:** [April 27, 2020, 12:57pm UTC](https://community.traefik.io/t/skipping-empty-configuration-for-provider-consul/5588/3 "2020-04-27T12:57:13Z")

</div>

Hello,

only the dynamic configuration can be store and read from Consul: the static configuration cannot be stored in Consul.

---

<div class="post-metadata">

**Author:** ![bvivi57](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/bvivi57/32/1939_2.png) [@bvivi57](https://community.traefik.io/u/bvivi57)\
**Post date:** [April 27, 2020, 2:52pm UTC](https://community.traefik.io/t/skipping-empty-configuration-for-provider-consul/5588/4 "2020-04-27T14:52:23Z")

</div>

Hi,  
Thanks for your help.  
I'm stupid.

Indeed it works very well with dynamic parameters. I have just tried with an http route and it works.

Thank you!
