# Adding an external hostname to a Loadbalanced service?

**URL:** <https://forums.suse.com/t/adding-an-external-hostname-to-a-loadbalanced-service/4699>\
**Category:** General\
**Created:** [November 23, 2016, 2:15am UTC](https://forums.suse.com/t/adding-an-external-hostname-to-a-loadbalanced-service/4699 "2016-11-23T02:15:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stefan\_Lasiewski](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/stefan_lasiewski/32/1801_2.png) [@Stefan\_Lasiewski](https://forums.suse.com/u/Stefan_Lasiewski)\
**Post date:** [November 23, 2016, 2:15am UTC](https://forums.suse.com/t/adding-an-external-hostname-to-a-loadbalanced-service/4699/1 "2016-11-23T02:15:39Z")

</div>

I have a hostname & IP address which I want to assign to a Loadbalanced service in Rancher. In this example, let’s assume that the hostname is ‘[www.example.org](http://www.example.org)’.

To set up HA traditionally, without containers, I would do something like the following:

- Allocate several hosts as webservers.
- Allocate two hosts as Loadbalancers. These direct traffic to the three real servers.
- Acquire a hostname/IP for the public service.
- For HA:
  - Plumb each loadbalancer with the IP address of the service
  - Configure the Loadbalancers to use [keepalived](https://www.digitalocean.com/community/tutorials/how-to-set-up-highly-available-web-servers-with-keepalived-and-floating-ips-on-ubuntu-14-04) or something similar so that the service IP address floats between two machines, and is always available if one machine is down.

How would I do this in Rancher? Can I assign an IP address via Rancher which will float from one host to another?

So far what I’ve tried to do in Rancher is:

1. Assign the IP address for [www.example.org](http://www.example.org) to one of the Rancher worker nodes

- Configure two wordpress containers, one MySQL container and one Loadbalancer service per the [Rancher Quick Start Guide](http://docs.rancher.com/rancher/v1.1/en/quick-start-guide/)
- In the loadbancer, I tried to assign the IP address from #1. I don’t think this worked.

However, any way to configure the Rancher Loadbalancer manipulate IP addresses on the host.
