Mirantis Container Cloud (MCC) becomes part of Mirantis OpenStack for Kubernetes (MOSK)!
Starting with MOSK 25.2, the MOSK documentation set covers all product layers, including MOSK management (formerly MCC). This means everything you need is in one place. The separate MCC documentation site will be retired, so please update your bookmarks for continued easy access to the latest content.
Enable Ceph multinetwork¶
Warning
This procedure is valid for MOSK clusters that use the MiraCeph
custom
resource (CR), which is available since MOSK 25.2 to replace the deprecated
KaaSCephCluster
. For the equivalent procedure with the KaaSCephCluster
CR, refer to the following section:
Ceph allows establishing multiple IP networks and subnet masks for clusters
with configured L3 network rules. You can configure multi-network through the
network
section of the MiraCeph
CR. Ceph Controller uses this section
to specify the Ceph networks for external access and internal daemon
communication. The parameters in the network
section use the CIDR notation,
for example, 10.0.0.0/24
.
Before enabling multiple networks for a Ceph cluster, consider the following requirements:
Do not confuse the IP addresses you define with the public-facing IP addresses the network clients may use to access the services.
If you define more than one IP address and subnet mask for the public or cluster network, ensure that the subnets within the network can route to each other.
Include each IP address or subnet in the
network
section to IP tables and open ports for them as necessary.The pods of the Ceph OSD and RadosGW daemons use cross-pods health checkers to verify that the entire Ceph cluster is healthy. Therefore, each CIDR must be accessible inside Ceph pods.
Avoid using the
0.0.0.0/0
CIDR in thenetwork
section. With a zero range inpublicNet
and/orclusterNet
, the Ceph daemons behavior is unpredictable.
To enable multinetwork for Ceph:
Select from the following options:
If the Ceph cluster is not deployed on a MOSK cluster yet, edit the deployment
MiraCeph
YAML template.If the Ceph cluster is already deployed on a MOSK cluster, open
MiraCeph
for editing:kubectl -n ceph-lcm-mirantis edit miraceph
In the
clusterNet
and/orpublicNet
parameters of thenetwork
section, define a comma-separated array of CIDRs. For example:network: publicNet: 10.12.0.0/24,10.13.0.0/24 clusterNet: 10.10.0.0/24,10.11.0.0/24
Select from the following options:
If you are creating a MOSK cluster, save the updated
MiraCeph
template to the corresponding file and proceed with the MOSK cluster creation.If you are configuring
MiraCeph
of an existing MOSK cluster, exiting the text editor will apply the changes.
Once done, the specified network CIDRs will be passed to the Ceph daemons pods
through the rook-config-override
ConfigMap.