Deploy a Ceph cluster

Deploy a Ceph cluster

Deploy Ceph in the same Kubernetes cluster as described in Mirantis Container Cloud Operations Guide: Add a Ceph cluster. For Ceph cluster limitations, see Mirantis Container Cloud Reference Architecture: Limitations.

Caution

Production deployments support only Ceph with a host network. To enable it, verify that the following snippet is present in the KaaSCephCluster configuration:

network:
  hostNetwork: true
  clusterNet: 10.10.10.0/24
  publicNet: 10.10.11.0/24

An example configuration of pools from the KaasCephCluster object that includes OpenStack required pools for Image, Block Storage, and Compute services:

spec:
  pools:
    - default: true
      deviceClass: hdd
      name: kubernetes
      replicated:
        size: 2
      role: kubernetes
    - default: false
      deviceClass: hdd
      name: volumes
      replicated:
        size: 2
      role: volumes
    - default: false
      deviceClass: hdd
      name: vms
      replicated:
        size: 2
      role: vms
    - default: false
      deviceClass: hdd
      name: backup
      replicated:
        size: 2
      role: backup
    - default: false
      deviceClass: hdd
      name: images
      replicated:
        size: 2
      role: images
    - default: false
      deviceClass: hdd
      name: other
      replicated:
        size: 2
      role: other

When all pools are created, verify that an appropriate secret required for a successful deployment of the OpenStack services that rely on Ceph is created in the openstack-ceph-shared namespace:

kubectl -n openstack-ceph-shared get secrets openstack-ceph-keys

Example of a positive system response:

NAME                  TYPE     DATA   AGE
openstack-ceph-keys   Opaque   7      36m