Configuring network keys

The MicroCeph cluster configuration CLI supports setting, getting, resetting and listing supported config keys mentioned below.

Supported Config Keys

Key

Description

cluster_network

Set this key to desired CIDR to configure cluster network

public_network

Set this key to desired CIDR to configure public network

  1. Supported config keys can be configured using the ‘set’ command:

$ sudo microceph cluster config set cluster_network 10.5.0.0/16
  1. Config value for a particular key could be queried using the ‘get’ command:

$ sudo microceph cluster config get cluster_network
+---+-----------------+-------------+
| # |       KEY       |     VALUE   |
+---+-----------------+-------------+
| 0 | cluster_network | 10.5.0.0/16 |
+---+-----------------+-------------+
  1. A list of all the configured keys can be fetched using the ‘list’ command:

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

$ sudo microceph cluster config reset cluster_network
$ sudo microceph cluster config reset public_network
$ sudo microceph cluster config list
+---+-----+-------+
| # | KEY | VALUE |
+---+-----+-------+

For more explanations and implementation details refer to explanation