Using Pools

Overview

Pool is used by provisioners to group nodes and know if an application can be deployed in these nodes. Users can choose which pool to deploy in tsuru app-create.

Adding a pool

In order to create a pool, you should invoke tsuru-admin pool-add:

$ tsuru-admin pool-add pool1

Adding teams to a pool

Then you can youse tsuru-admin pool-teams-add to add teams to the pool that you’ve just created:

$ tsuru-admin pool-teams-add pool1 team1 team2

$ tsuru-admin pool-teams-add pool2 team3

Listing pools

To list pools you do:

$ tsuru-admin pool-list
+-------+-------------+
| Pools | Teams       |
+-------+-------------+
| pool1 | team1 team2 |
| pool2 | team3       |
+-------+-------------+

Removing a pool

If you wanna remove a pool, use tsuru-admin pool-remove:

$ tsuru-admin pool-remove pool1

Removing teams from a pool

You can remove one or more teams from a pool using the command tsuru-admin pool-teams-remove:

$ tsuru-admin pool-teams-remove pool1 team1

$ tsuru-admin pool-teams-remove pool1 team1 team2 team3