Skip to content

Commit

Permalink
docs: add volume usage example
Browse files Browse the repository at this point in the history
  • Loading branch information
andrestc committed Jan 30, 2018
1 parent 7f69382 commit bd4354b
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions docs/managing/volumes.rst
Expand Up @@ -59,3 +59,21 @@ Volumes binds, like service binds, associate a given application to a previously
the volume will be made available to the application by the provisioner. The bind/unbind actions can be triggered by the tsuru
client.

Example
=======

Supose an ``ebs`` volume plan is registered in tsuru configuration, one can create a volume using tsuru client:

.. highlight:: bash

::

$ tsuru volume create myvol ebs -o capacity=1Gi

To be able to use this volume from an app, bind to it:

.. highlight:: bash

::

$ tsuru volume bind myvol /mnt/mountpoint -a my-app

0 comments on commit bd4354b

Please sign in to comment.