tsuru uses PlanB to route the requests to the containers. Routing information is stored by tsuru in the configured Redis server, PlanB will read this configuration directly from Redis.
Let’s start adding the repositories for tsuru which contain the PlanB package.
$ curl -s https://packagecloud.io/install/repositories/tsuru/stable/script.deb.sh | sudo bash
$ curl -s https://packagecloud.io/install/repositories/tsuru/stable/script.rpm.sh | sudo bash
For more details, check packagecloud.io documentation.
$ sudo apt-get install planb
$ sudo yum install planb
You may change the file
/etc/default/planb, changing the PLANB_OPTS
environment variable for configuring the binding address and the Redis
endpoint, along with other settings, as described in PlanB docs.
Keep in mind that you will need to change the init file for service in
/etc/systemd/system/planb.service and add in the line where the
ExecStart is located the loading of the environment variable.
The line will have the following content:
After changing the file, you only need to start PlanB with:
sudo start planb