# Consul Catalog - Services not added to Traefik after exposedByDefault is set to false

**URL:** https://community.traefik.io/t/consul-catalog-services-not-added-to-traefik-after-exposedbydefault-is-set-to-false/7281
**Category:** Traefik v2
**Tags:** consul-catalog
**Created:** [August 13, 2020, 4:46am UTC](https://community.traefik.io/t/consul-catalog-services-not-added-to-traefik-after-exposedbydefault-is-set-to-false/7281 "2020-08-13T04:46:38Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![taro](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/taro/32/2441_2.png) [@taro](https://community.traefik.io/u/taro)
#### Post date: [August 13, 2020, 4:46am UTC](https://community.traefik.io/t/consul-catalog-services-not-added-to-traefik-after-exposedbydefault-is-set-to-false/7281/1 "2020-08-13T04:46:38Z")

</div>

V2.2.5  
3 Consul servers and agents installed. Each app will have its own consul sidecar.

Note that when exposedByDefault is true, the apps are detected and registered to traefik as consulCatalog provider and can be seen in the dashboard. Note that we have issues with routing and suspect that adding the annotations to the pods are not working.

Example annotations that are added to the pod:  
traefik.enable: "true"  
traefik.http.routers.demo.entrypoints: web  
traefik.http.routers.demo.rule: Path('/v1') || PathPrefix('/v1')  
traefik.http.services.demo.loadbalancer.server.port: "8080"  
traefik.http.services.demo.rule: Path('/v1') || PathPrefix('/v1')

I am tried all of them and they do not work.  
I have a simple test app that has a pod and a service. I access it after port forwarding, [http://localhost:8080/v1/hello](http://localhost:8080/v1/hello). Right now, it doesn't even detect the app.  
It will be great to have some documentations on how and where to specify the annotations.

---

<div class="post-metadata">

### Author: ![icot](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/icot/32/2469_2.png) [@icot](https://community.traefik.io/u/icot)
#### Post date: [August 20, 2020, 6:47am UTC](https://community.traefik.io/t/consul-catalog-services-not-added-to-traefik-after-exposedbydefault-is-set-to-false/7281/2 "2020-08-20T06:47:24Z")

</div>

Hi,

Are you using ACL Tokens with Consul?

I had the same behaviour because the ACL Token I was using for traefik despite having access to list the Consul catalog wasn't working as expected from within Traefik so it was actually not seeing the tags.

I needed to try with a different token with wider permissions for everything to work.

Cheers

---

<div class="post-metadata">

### Author: ![taro](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/taro/32/2441_2.png) [@taro](https://community.traefik.io/u/taro)
#### Post date: [August 20, 2020, 5:58pm UTC](https://community.traefik.io/t/consul-catalog-services-not-added-to-traefik-after-exposedbydefault-is-set-to-false/7281/3 "2020-08-20T17:58:09Z")

</div>

Thanks for sharing but i have solved this post's issue. I didn't have ACL enabled and it has nothing to do with ACL issue. It's a service tag issue.
