From 187c9d247dad9c7df1b54d07200ca5146068fc26 Mon Sep 17 00:00:00 2001 From: "v.oleynikov" Date: Thu, 28 Mar 2024 16:07:40 +0300 Subject: [PATCH] [docs] add module documentation Signed-off-by: v.oleynikov --- docs/README.md | 259 ++++++++++++++++++++++++++++++++++++++++++++++ docs/README_RU.md | 205 ++++++++++++++++++++++++++++++++++++ 2 files changed, 464 insertions(+) create mode 100644 docs/README.md create mode 100644 docs/README_RU.md diff --git a/docs/README.md b/docs/README.md new file mode 100644 index 00000000..f82d2626 --- /dev/null +++ b/docs/README.md @@ -0,0 +1,259 @@ +--- +title: "The sds-local-volume module" +description: "The sds-local-volume module: General Concepts and Principles." +moduleStatus: experimental +--- + +{{< alert level="warning" >}} +The module is only guaranteed to work if [requirements](./readme.html#system-requirements-and-recommendations) are met. +As for any other configurations, the module may work, but its smooth operation is not guaranteed. +{{< /alert >}} + +This module manages replicated block storage based on `DRBD`. Currently, `LINSTOR` is used as a control-plane. The module allows you to create a `Storage Pool` in `LINSTOR` as well as a `StorageClass` in `Kubernetes` by creating [Kubernetes custom resources](./cr.html). +To create a `Storage Pool`, you will need the `LVMVolumeGroup` configured on the cluster nodes. The `LVM` configuration is done by the [sds-node-configurator](../../sds-node-configurator/) module. +> **Caution!** Before enabling the `sds-local-volume` module, you must enable the `sds-node-configurator` module. +> +> **Caution!** The user is not allowed to configure the `LINSTOR` backend directly. +> +> **Caution!** Data synchronization during volume replication is carried out in synchronous mode only, asynchronous mode is not supported. + +After you enable the `sds-local-volume` module in the Deckhouse configuration, your cluster will be automatically set to use the `LINSTOR` backend. You will only have to create [storage pools and StorageClasses](./usage.html#configuring-the-linstor-backend). + +> **Caution!** The user is not allowed to create a `StorageClass` for the replicated.csi.storage.deckhouse.io CSI driver. + +Two modes are supported: LVM and LVMThin. +Each mode has its advantages and disadvantages. Read [FAQ](./faq.html#what-is-difference-between-lvm-and-lvmthin) to learn more and compare them. + +## Quickstart guide + +Note that all commands must be run on a machine that has administrator access to the Kubernetes API. + +### Enabling modules + +- Enable the sds-node-configurator module + +```shell +kubectl apply -f - < **Внимание!** Перед включением модуля `sds-local-volume` необходимо включить модуль `sds-node-configurator`. +> +После включения модуля `sds-local-volume` необходимо создать StorageClass'ы. + +> **Внимание!** Создание `StorageClass` для CSI-драйвера local.csi.storage.deckhouse.io пользователем запрещено. + +Поддерживаются два режима — LVM и LVMThin. +Каждый из них имеет свои достоинства и недостатки, подробнее о различиях читайте в [FAQ](./faq.html#когда-следует-использовать-lvm-а-когда-lvmthin). + +## Быстрый старт + +Все команды следует выполнять на машине, имеющей доступ к API Kubernetes с правами администратора. + +### Включение модулей + +- Включить модуль sds-node-configurator + +```shell +kubectl apply -f - <