Skip to content

Commit

Permalink
feat: add volumes in references (#424)
Browse files Browse the repository at this point in the history
* doc: add volume tables

Signed-off-by: Guilhem Barthés <guilhem.barthes@owkin.com>

* doc: include volume table in reference

Signed-off-by: Guilhem Barthés <guilhem.barthes@owkin.com>

* doc: improve information about `docker-registry`

Signed-off-by: Guilhem Barthés <guilhem.barthes@owkin.com>

* doc: add some sentences about the volumes

Signed-off-by: Guilhem Barthés <guilhem.barthes@owkin.com>

* fix: apply feedback on tables

Signed-off-by: Guilhem Barthés <guilhem.barthes@owkin.com>

* fix: change description volumes in substra backend

Signed-off-by: Guilhem Barthés <guilhem.barthes@owkin.com>

* fix: capitalization

Signed-off-by: Guilhem Barthés <guilhem.barthes@owkin.com>

---------

Signed-off-by: Guilhem Barthés <guilhem.barthes@owkin.com>
  • Loading branch information
guilhem-barthes authored Jul 9, 2024
1 parent ec0ca34 commit 5cad7cc
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/source/reference/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ Substra is distributed as Helm charts, and most values can be customized to acco

.. include:: pss.rst
.. include:: netpol.rst
.. include:: volumes.rst
47 changes: 47 additions & 0 deletions docs/source/reference/volumes.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
Volumes
-------

This section lists the different persistent volume claims that are created during a standard deployment of Substra in a cluster.

Orchestrator
************

The orchestrator claims are only linked with its database. This database (and the underlying volume) is important has it is where we store all the events that happen in the network.

+--------------+--------------+----------+---------------------------------+--------------------------+---------------+----------------+---------------+----------------------------------------------+
| PVC name | Component | Pod | access mode | Volume Size default (Gi) | storage class | reclaim policy | Can be reused | How to re use |
+==============+==============+==========+=================================+==========================+===============+================+===============+==============================================+
| Postgres PVC | orchestrator | postgres | ReadWriteOnce (can be modified) | 8 | <empty> | default | yes | postgresql.primary.persistence.existingClaim |
+--------------+--------------+----------+---------------------------------+--------------------------+---------------+----------------+---------------+----------------------------------------------+


Backend
*******

The backend is the most complex component and it requires different volumes for functioning. Volumes that should be persisted on the long term can be created outside of the deployment of the Substra stack. It is not currently possible to re-use existing volumes for the other ones (acting as cache).

+---------------------+-----------+------------+---------------------------------+--------------------------+---------------+----------------+---------------+----------------------------------------------+----------------------------------------------------+
| PVC name | Component | Pod | access mode | Volume Size default (Gi) | storage class | reclaim policy | Can be reused | How to re use | Comment |
+=====================+===========+============+=================================+==========================+===============+================+===============+==============================================+====================================================+
| Postgres PVC | backend | postgres | ReadWriteOnce (can be modified) | 8 | <empty> | default | yes | postgresql.primary.persistence.existingClaim | |
+---------------------+-----------+------------+---------------------------------+--------------------------+---------------+----------------+---------------+----------------------------------------------+----------------------------------------------------+
| Localstack PVC | backend | localstack | ReadWriteOnce (can be modified) | 5 | <empty> | default | yes | localstack.persistence.existingClaim | Only created when `localstack.enabled = true` |
+---------------------+-----------+------------+---------------------------------+--------------------------+---------------+----------------+---------------+----------------------------------------------+----------------------------------------------------+
| Minio PVC | backend | minio | ReadWriteOnce (can be modified) | 8 | <empty> | default | yes | minio.persistence.existingClaim | Only created when `minio.enabled = true` |
+---------------------+-----------+------------+---------------------------------+--------------------------+---------------+----------------+---------------+----------------------------------------------+----------------------------------------------------+
| Redis PVC | backend | redis | ReadWriteOnce (can be modified) | 8 | <empty> | default | yes | redis.master.persistence.existingClaim | |
+---------------------+-----------+------------+---------------------------------+--------------------------+---------------+----------------+---------------+----------------------------------------------+----------------------------------------------------+
| Kaniko cache warmer | backend | builder | ReadWriteOnce | 10 | <empty> | default | no | | |
+---------------------+-----------+------------+---------------------------------+--------------------------+---------------+----------------+---------------+----------------------------------------------+----------------------------------------------------+
| Builder PVC | backend | builder | ReadWriteOnce | 10 | <empty> | default | no | | |
+---------------------+-----------+------------+---------------------------------+--------------------------+---------------+----------------+---------------+----------------------------------------------+----------------------------------------------------+
| Worker subtuple | backend | worker | ReadWriteOnce (can be modified) | 10 | <empty> | default | no | | |
+---------------------+-----------+------------+---------------------------------+--------------------------+---------------+----------------+---------------+----------------------------------------------+----------------------------------------------------+
| Docker registry | backend | registry | ReadWriteOnce (can be modified) | 10 | <empty> | default | yes | docker-registry.persistence.existingClaim | Only created when `docker-registry.enabled = true` |
+---------------------+-----------+------------+---------------------------------+--------------------------+---------------+----------------+---------------+----------------------------------------------+----------------------------------------------------+


Frontend
********

The frontend does not need any persistent volume claim.

0 comments on commit 5cad7cc

Please sign in to comment.