Mohammed Naser | 90128aa | 2024-04-29 13:21:58 -0400 | [diff] [blame] | 1 | ################# |
| 2 | CSI Configuration |
| 3 | ################# |
| 4 | |
| 5 | This section details how to configure Container Storage Interfaces (CSI) for |
| 6 | your Kubernetes cluster that Atmosphere runs on. You will need to follow the |
| 7 | steps below to enable specific CSI drivers based on your storage requirements. |
| 8 | |
Mohammed Naser | afcf0a1 | 2024-05-19 00:13:27 +0200 | [diff] [blame] | 9 | .. admonition:: Storing secrets securely |
| 10 | :class: tip |
| 11 | |
| 12 | When configuring CSI drivers, it is important to store sensitive |
| 13 | information securely. You can use Ansible Vault to encrypt your inventory |
| 14 | file and store it in a secure location. For more information on how to |
| 15 | use Ansible Vault, refer to the `Ansible documentation <https://docs.ansible.com/ansible/latest/user_guide/vault.html>`_. |
| 16 | |
Mohammed Naser | 90128aa | 2024-04-29 13:21:58 -0400 | [diff] [blame] | 17 | ******** |
| 18 | Ceph RBD |
| 19 | ******** |
| 20 | |
| 21 | If you are using the Ceph storage solution that Atmosphere deploys out of the |
| 22 | box, no additional configuration is required. The necessary settings are |
| 23 | automatically applied during the installation process. |
| 24 | |
| 25 | *************** |
| 26 | Dell PowerStore |
| 27 | *************** |
| 28 | |
| 29 | For environments requiring the integration of PowerStore for storage, |
| 30 | configure the PowerStore CSI driver by updating your Ansible inventory as |
| 31 | follows: |
| 32 | |
| 33 | .. code-block:: yaml |
| 34 | |
| 35 | csi_driver: powerstore |
| 36 | powerstore_csi_config: |
| 37 | arrays: |
| 38 | - endpoint: https://<FILL IN>/api/rest |
| 39 | globalID: <FILL IN> |
| 40 | username: <FILL IN> |
| 41 | password: <FILL IN> |
| 42 | skipCertificateValidation: true |
| 43 | isDefault: true |
| 44 | blockProtocol: <FILL IN> # FC or iSCSI |
| 45 | |
| 46 | Ensure that you replace ``<FILL IN>`` with actual values relevant to your |
| 47 | PowerStore configuration. This includes specifying the block protocol, which |
| 48 | can either be Fibre Channel (FC) or iSCSI, depending on your network |
| 49 | infrastructure. |
| 50 | |
| 51 | ******** |
Mohammed Naser | afcf0a1 | 2024-05-19 00:13:27 +0200 | [diff] [blame] | 52 | Portworx |
| 53 | ******** |
| 54 | |
| 55 | If you are using a Pure Storage array for your block storage, you can use the |
| 56 | Portworx CSI driver to integrate it with your Kubernetes cluster. Portworx |
| 57 | automatically enables a custom license when integrated with Pure Storage |
| 58 | arrays (FA/FB edition). |
| 59 | |
| 60 | To configure the Portworx CSI driver, update your Ansible inventory as follows: |
| 61 | |
| 62 | .. code-block:: yaml |
| 63 | |
| 64 | csi_driver: portworx |
| 65 | portworx_pure_flasharray_san_type: <FILL IN> # FC or ISCSI |
| 66 | portworx_pure_json: |
| 67 | FlaskBlades: [] |
| 68 | FlashArrays: |
| 69 | - MgmtEndPoint: <FILL IN> |
| 70 | APIToken: <FILL IN> |
| 71 | |
| 72 | For more information about how the ``portworx_pure_json`` variable is used, |
| 73 | you can refer to the `Pure Storage FlashArray and FlashBlade JSON file reference <https://docs.portworx.com/portworx-enterprise/reference/pure-reference/pure-json-reference>`_. |
| 74 | |
| 75 | ******** |
Mohammed Naser | 90128aa | 2024-04-29 13:21:58 -0400 | [diff] [blame] | 76 | StorPool |
| 77 | ******** |
| 78 | |
| 79 | For environments requiring the integration of StorPool for storage, configure |
| 80 | the StorPool CSI driver by updating your Ansible inventory as follows: |
| 81 | |
| 82 | .. code-block:: yaml |
| 83 | |
| 84 | csi_driver: storpool |
| 85 | storpool_csi_template: k8s |
| 86 | |
| 87 | The ``storpool_csi_template`` variable specifies the StorPool template to use |
| 88 | for the deployment which is set to ``k8s`` in the example above. |