Ceph Object Multisite CRDs

The following CRDs enable Ceph object stores to isolate or replicate data via multisite. For more information on multisite, visit the ceph-object-multisite documentation.

Ceph Object Realm CRD

Rook allows creation of a realm in a ceph cluster for object stores through the custom resource definitions (CRDs). The following settings are available for Ceph object store realms.

Sample

  1. apiVersion: ceph.rook.io/v1
  2. kind: CephObjectRealm
  3. metadata:
  4. name: realm-a
  5. namespace: rook-ceph
  6. # This endpoint in this section needs is an endpoint from the master zone in the master zone group of realm-a. See object-multisite.md for more details.
  7. spec:
  8. pull:
  9. endpoint: http://10.2.105.133:80

Object Realm Settings

Metadata

  • name: The name of the object realm to create
  • namespace: The namespace of the Rook cluster where the object realm is created.

Spec

  • pull: This optional section is for the pulling the realm for another ceph cluster.
    • endpoint: The endpoint in the realm from another ceph cluster you want to pull from. This endpoint must be in the master zone of the master zone group of the realm.

Ceph Object Zone Group CRD

Rook allows creation of zone groups in a ceph cluster for object stores through the custom resource definitions (CRDs). The following settings are available for Ceph object store zone groups.

Sample

  1. apiVersion: ceph.rook.io/v1
  2. kind: CephObjectZoneGroup
  3. metadata:
  4. name: zonegroup-a
  5. namespace: rook-ceph
  6. spec:
  7. realm: realm-a

Object Zone Group Settings

Metadata

  • name: The name of the object zone group to create
  • namespace: The namespace of the Rook cluster where the object zone group is created.

Spec

  • realm: The object realm in which the zone group will be created. This matches the name of the object realm CRD.

Ceph Object Zone CRD

Rook allows creation of zones in a ceph cluster for object stores through the custom resource definitions (CRDs). The following settings are available for Ceph object store zone.

Sample

  1. apiVersion: ceph.rook.io/v1
  2. kind: CephObjectZone
  3. metadata:
  4. name: zone-a
  5. namespace: rook-ceph
  6. spec:
  7. zonegroup: zonegroup-a
  8. metadataPool:
  9. failureDomain: host
  10. replicated:
  11. size: 3
  12. dataPool:
  13. failureDomain: osd
  14. erasureCoded:
  15. dataChunks: 2
  16. codingChunks: 1

Object Zone Settings

Metadata

  • name: The name of the object zone to create
  • namespace: The namespace of the Rook cluster where the object zone is created.

Pools

The pools allow all of the settings defined in the Pool CRD spec. For more details, see the Pool CRD settings. In the example above, there must be at least three hosts (size 3) and at least three devices (2 data + 1 coding chunks) in the cluster.

Spec

  • zonegroup: The object zonegroup in which the zone will be created. This matches the name of the object zone group CRD.
  • metadataPool: The settings used to create all of the object store metadata pools. Must use replication.
  • dataPool: The settings to create the object store data pool. Can use replication or erasure coding.