# Reverse Proxy/Load Balancer across multiple stacks

**URL:** https://forums.suse.com/t/reverse-proxy-load-balancer-across-multiple-stacks/134
**Category:** Rancher 1.x
**Created:** [July 21, 2015, 9:27am UTC](https://forums.suse.com/t/reverse-proxy-load-balancer-across-multiple-stacks/134 "2015-07-21T09:27:22Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![thomastweets](https://avatars.discourse-cdn.com/v4/letter/t/f17d59/32.png) [@thomastweets](https://forums.suse.com/u/thomastweets)
#### Post date: [July 21, 2015, 9:27am UTC](https://forums.suse.com/t/reverse-proxy-load-balancer-across-multiple-stacks/134/1 "2015-07-21T09:27:22Z")

</div>

Hi there!

I have been trying out rancher during the last few days and have stumbled upon a use case that would be important for me. I run rancher on one server (rancher-server and rancher-agent) and multiple projects should be running on that server (multi-tenancy). With respect to this the stacks are a nice way to isolate the separate projects/apps from each other. However, if I create a load-balancer for example in the “Default” stack that would run on port 80 and redirect requests to all the separate projects/apps I cannot select services from other stacks (containers outside of the “Default” stack).  
Maybe I also got the concept wrong.  
Could you give me a hint?

Cheers,  
Thomas

---

<div class="post-metadata">

### Author: ![vincent](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/vincent/32/7156_2.png) [@vincent](https://forums.suse.com/u/vincent)
#### Post date: [July 21, 2015, 3:37pm UTC](https://forums.suse.com/t/reverse-proxy-load-balancer-across-multiple-stacks/134/2 "2015-07-21T15:37:40Z")

</div>

There’s no compelling reason to restrict links to the same stack; it is a largely artificial limitation that will be removed in a future release.

---

<div class="post-metadata">

### Author: ![thomastweets](https://avatars.discourse-cdn.com/v4/letter/t/f17d59/32.png) [@thomastweets](https://forums.suse.com/u/thomastweets)
#### Post date: [July 21, 2015, 3:50pm UTC](https://forums.suse.com/t/reverse-proxy-load-balancer-across-multiple-stacks/134/3 "2015-07-21T15:50:01Z")

</div>

Hi Vincent, thanks for your answer. Would you have any ETA on that? It’s a feature my server setup would depend on and I have to decide for a solution soon.  
Thanks!

---

<div class="post-metadata">

### Author: ![denise](https://avatars.discourse-cdn.com/v4/letter/d/82dd89/32.png) [@denise](https://forums.suse.com/u/denise)
#### Post date: [July 21, 2015, 5:48pm UTC](https://forums.suse.com/t/reverse-proxy-load-balancer-across-multiple-stacks/134/4 "2015-07-21T17:48:26Z")

</div>

I’ve created an enhancement issue in Github. If enough people are interested, we can look into prioritizing it.

> <https://github.com/rancher/rancher/issues/1597>
>
> Currently, a service and a load balancer can only be linked to services within the same stack. This enhancement would allow...

---

<div class="post-metadata">

### Author: ![jeremy](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/jeremy/32/12_2.png) [@jeremy](https://forums.suse.com/u/jeremy)
#### Post date: [July 21, 2015, 6:24pm UTC](https://forums.suse.com/t/reverse-proxy-load-balancer-across-multiple-stacks/134/5 "2015-07-21T18:24:59Z")

</div>

+1 for that! Our use case ideally needs a reverse proxy that can link to any stack and then route requests based on domain name.

---

<div class="post-metadata">

### Author: ![jwhitcraft](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/jwhitcraft/32/37_2.png) [@jwhitcraft](https://forums.suse.com/u/jwhitcraft)
#### Post date: [July 21, 2015, 9:37pm UTC](https://forums.suse.com/t/reverse-proxy-load-balancer-across-multiple-stacks/134/6 "2015-07-21T21:37:42Z")

</div>

+1 for this as well. Huge blocker for what we are trying to do at my company.

---

<div class="post-metadata">

### Author: ![thomastweets](https://avatars.discourse-cdn.com/v4/letter/t/f17d59/32.png) [@thomastweets](https://forums.suse.com/u/thomastweets)
#### Post date: [July 22, 2015, 7:54am UTC](https://forums.suse.com/t/reverse-proxy-load-balancer-across-multiple-stacks/134/7 "2015-07-22T07:54:32Z")

</div>

Thanks, denise! Would be really great to have that feature! It would make rancher into an ideal orchestration platform for (not only) single-vps usage!

---

<div class="post-metadata">

### Author: ![lkoenigsberger](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/lkoenigsberger/32/30_2.png) [@lkoenigsberger](https://forums.suse.com/u/lkoenigsberger)
#### Post date: [July 23, 2015, 9:12am UTC](https://forums.suse.com/t/reverse-proxy-load-balancer-across-multiple-stacks/134/8 "2015-07-23T09:12:00Z")

</div>

+1 for this one. Already asked for that feature in the last meetup 😄

---

<div class="post-metadata">

### Author: ![willchan](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/willchan/32/2856_2.png) [@willchan](https://forums.suse.com/u/willchan)
#### Post date: [July 23, 2015, 4:28pm UTC](https://forums.suse.com/t/reverse-proxy-load-balancer-across-multiple-stacks/134/9 "2015-07-23T16:28:55Z")

</div>

We do plan on adding support for LB across stacks but I wanted to make sure that you aren’t really blocked by this as you can always create a LB service per stack. In the end, we can only support 1 LB container instance per host, per published port even if they are created from different LB services.

We are of course going to remove this restriction as we’ve already allowed DNS discovery across stacks so there’s really no reason to restrict LB.

---

<div class="post-metadata">

### Author: ![denise](https://avatars.discourse-cdn.com/v4/letter/d/82dd89/32.png) [@denise](https://forums.suse.com/u/denise)
#### Post date: [September 9, 2015, 2:34am UTC](https://forums.suse.com/t/reverse-proxy-load-balancer-across-multiple-stacks/134/10 "2015-09-09T02:34:40Z")

</div>

As of v0.30.0, cross stack linking for load balancers was enabled.

---

<div class="post-metadata">

### Author: ![denise](https://avatars.discourse-cdn.com/v4/letter/d/82dd89/32.png) [@denise](https://forums.suse.com/u/denise)
#### Post date: [September 9, 2015, 2:34am UTC](https://forums.suse.com/t/reverse-proxy-load-balancer-across-multiple-stacks/134/11 "2015-09-09T02:34:42Z")

</div>


