# TraefikV2 Consul rootkey

**URL:** <https://community.traefik.io/t/traefikv2-consul-rootkey/11202>\
**Category:** Traefik v2\
**Tags:** kv, consul-catalog\
**Created:** [July 16, 2021, 7:46pm UTC](https://community.traefik.io/t/traefikv2-consul-rootkey/11202 "2021-07-16T19:46:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Raskosk](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/raskosk/32/4012_2.png) [@Raskosk](https://community.traefik.io/u/Raskosk)\
**Post date:** [July 16, 2021, 7:46pm UTC](https://community.traefik.io/t/traefikv2-consul-rootkey/11202/1 "2021-07-16T19:46:45Z")

</div>

I'm just getting started with traefik and Consul.  
I've 3 independent running traefikV2.4.9 instances and want to manage my configurations with Consul and ConsulCatalog.  
Therefore, I'm trying to keep my configurations for each instance at one rootkey, because I'm using consul for multiple applications.

So I try to do sth like that:  
/traefikV2/instance/...  
e.g.  
/traefikV2/cluster1

command via cli:

```auto
-- -providers.consul.endpoints=consul-consul-server.default.svc.cluster.local:8500
-- -providers.consul.rootkey="traefikV2/cluster1"
...
-- -log.level=debug

```

Unfortunately, I'm getting this debug from traefik:

```auto
time="2021-07-16T19:41:02Z" level=debug msg="WatchTree: traefikV2/cluster1"
time="2021-07-16T19:41:02Z" level=debug msg="List: traefikV2/cluster1"
time="2021-07-16T19:41:02Z" level=error msg="KV connection error: Key not found in store, retrying in 10.021022776s" providerName=consul

```

Does anybody know whether this setup is possible and could help me?

---

<div class="post-metadata">

**Author:** ![daniel.tomcej](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/daniel.tomcej/32/262_2.png) [@daniel.tomcej](https://community.traefik.io/u/daniel.tomcej)\
**Post date:** [July 16, 2021, 8:31pm UTC](https://community.traefik.io/t/traefikv2-consul-rootkey/11202/2 "2021-07-16T20:31:59Z")

</div>

Hello @Raskosk,

Can you provide a sample of the keys that are present in consul?

The log shows that your root key configuration is being loaded, but that there are no keys returned when a list is run...

---

<div class="post-metadata">

**Author:** ![Raskosk](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/raskosk/32/4012_2.png) [@Raskosk](https://community.traefik.io/u/Raskosk)\
**Post date:** [July 17, 2021, 7:24am UTC](https://community.traefik.io/t/traefikv2-consul-rootkey/11202/3 "2021-07-17T07:24:22Z")

</div>

Thanks, I didn't pay attention to the fact that key-value pairs also had to be created

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/containo/original/2X/b/bd81ebdb578656e76e56ff3cc3eed021d3ba132d.png) [@system](https://community.traefik.io/u/system)\
**Post date:** [July 20, 2021, 7:25am UTC](https://community.traefik.io/t/traefikv2-consul-rootkey/11202/4 "2021-07-20T07:25:12Z")

</div>

Closed on July 20, 2021, 7:25am UTC

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.
