# Load Balancing with Kong and Consul Template

**URL:** <https://discuss.konghq.com/t/load-balancing-with-kong-and-consul-template/6153>\
**Category:** General\
**Created:** [April 28, 2020, 11:25am UTC](https://discuss.konghq.com/t/load-balancing-with-kong-and-consul-template/6153 "2020-04-28T11:25:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![flowdopip](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/flowdopip/32/1704_2.png) [@flowdopip](https://discuss.konghq.com/u/flowdopip)\
**Post date:** [April 28, 2020, 11:25am UTC](https://discuss.konghq.com/t/load-balancing-with-kong-and-consul-template/6153/1 "2020-04-28T11:25:05Z")

</div>

Does any one has something related to this.  
It is possible with Nginx [https://learn.hashicorp.com/consul/integrations/nginx-consul-template](https://learn.hashicorp.com/consul/integrations/nginx-consul-template), my question is how to this with kong and what are the impacts?  
thanks

---

<div class="post-metadata">

**Author:** ![hbagdi](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/hbagdi/32/562_2.png) [@hbagdi](https://discuss.konghq.com/u/hbagdi)\
**Post date:** [April 28, 2020, 6:19pm UTC](https://discuss.konghq.com/t/load-balancing-with-kong-and-consul-template/6153/2 "2020-04-28T18:19:20Z")

</div>

> [@flowdopip](#):
>
> how to this with kong and what are the impacts?

You can render a declarative configuration file instead of nginx template and send the file into kong using `POST /config` endpoint on the admin api.

---

<div class="post-metadata">

**Author:** ![flowdopip](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/flowdopip/32/1704_2.png) [@flowdopip](https://discuss.konghq.com/u/flowdopip)\
**Post date:** [April 29, 2020, 8:08am UTC](https://discuss.konghq.com/t/load-balancing-with-kong-and-consul-template/6153/3 "2020-04-29T08:08:01Z")

</div>

yes i know that, but the main idea here, is get part of service discovery of consult and automatic rules registration through kong.
