# How to specify multiple ports on same upstream service?

**URL:** <https://discuss.hashicorp.com/t/how-to-specify-multiple-ports-on-same-upstream-service/7171>\
**Category:** Consul\
**Created:** [March 28, 2020, 8:16pm UTC](https://discuss.hashicorp.com/t/how-to-specify-multiple-ports-on-same-upstream-service/7171 "2020-03-28T20:16:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![fouadsemaan](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/fouadsemaan/32/5624_2.png) [@fouadsemaan](https://discuss.hashicorp.com/u/fouadsemaan)\
**Post date:** [March 28, 2020, 8:16pm UTC](https://discuss.hashicorp.com/t/how-to-specify-multiple-ports-on-same-upstream-service/7171/1 "2020-03-28T20:16:55Z")

</div>

I am trying to integrate consul into Zookeeper. Each instance has 2 (server and election) ports but I can only specify one port. Service tags seem to be the way around it. I set the service tags (server-, election-) for each instance of Zookeeper and refer to them in the upstream annotations of each peer. Is that what they should be used for?

---

<div class="post-metadata">

**Author:** ![VipinShreyasKumar](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/vipinshreyaskumar/32/11468_2.png) [@VipinShreyasKumar](https://discuss.hashicorp.com/u/VipinShreyasKumar)\
**Post date:** [September 9, 2020, 4:05pm UTC](https://discuss.hashicorp.com/t/how-to-specify-multiple-ports-on-same-upstream-service/7171/2 "2020-09-09T16:05:36Z")

</div>

hi fouadsemaan, were you able to get a solution for this ?
