.. Copyright 2015 tsuru authors. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. +++++++++++++++++++ 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`: .. highlight:: bash :: $ 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: .. highlight:: bash :: $ tsuru-admin pool-teams-add pool1 team1 team2 $ tsuru-admin pool-teams-add pool2 team3 Listing pools ------------- To list pools you do: .. highlight:: bash :: $ 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`: .. highlight:: bash :: $ 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`: .. highlight:: bash :: $ tsuru-admin pool-teams-remove pool1 team1 $ tsuru-admin pool-teams-remove pool1 team1 team2 team3