Skip to content

Commit

Permalink
Merge pull request #193 from nobuto-m/network-address
Browse files Browse the repository at this point in the history
update cluster config docs
  • Loading branch information
UtkarshBhatthere authored Aug 27, 2023
2 parents c3ee25b + cc0df50 commit 9c3d9bf
Showing 1 changed file with 18 additions and 19 deletions.
37 changes: 18 additions & 19 deletions docs/how-to/cluster-cfg.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,44 +18,43 @@ The microceph cluster configuration CLI supports setting, getting, resetting and

.. code-block:: shell
$ sudo microceph cluster config set cluster_network 10.5.2.165/16
$ sudo microceph cluster config set cluster_network 10.5.0.0/16
2. Config value for a particular key could be queried using the 'get' command:

.. code-block:: shell
$ sudo microceph cluster config get cluster_network
+---+-----------------+---------------+
| # | KEY | VALUE |
+---+-----------------+---------------+
| 0 | cluster_network | 10.5.2.165/16 |
+---+-----------------+---------------+
+---+-----------------+-------------+
| # | KEY | VALUE |
+---+-----------------+-------------+
| 0 | cluster_network | 10.5.0.0/16 |
+---+-----------------+-------------+
3. A list of all the configured keys can be fetched using the 'list' command:

.. code-block:: shell
$ sudo microceph cluster config set public_network 10.5.2.165/16
$ sudo microceph cluster config set public_network 10.5.0.0/16
$ sudo microceph cluster config list
+---+-----------------+---------------+
| # | KEY | VALUE |
+---+-----------------+---------------+
| 0 | cluster_network | 10.5.2.165/16 |
+---+-----------------+---------------+
| 1 | public_network | 10.5.2.165/16 |
+---+-----------------+---------------+
+---+-----------------+-------------+
| # | KEY | VALUE |
+---+-----------------+-------------+
| 0 | cluster_network | 10.5.0.0/16 |
+---+-----------------+-------------+
| 1 | public_network | 10.5.0.0/16 |
+---+-----------------+-------------+
4. Resetting a config key (i.e. setting the key to its default value) can performed using the 'reset' command:

.. code-block:: shell
$ sudo microceph cluster config reset cluster_network
$ sudo microceph cluster config reset public_network
$ sudo microceph cluster config list
+---+-----------------+---------------+
| # | KEY | VALUE |
+---+-----------------+---------------+
| 0 | cluster_network | 10.5.2.165/16 |
+---+-----------------+---------------+
+---+-----+-------+
| # | KEY | VALUE |
+---+-----+-------+
For more explanations and implementation details refer to `explanation <../../explanation/cluster-cfg/>`_

0 comments on commit 9c3d9bf

Please sign in to comment.