Ceph

    PLEASE NOTE: This document applies to v1.2 version and not to the latest stable release v1.9

    Ceph Client CRD

    Rook allows creation and updating clients through the custom resource definitions (CRDs). For more information about user management and capabilities see the Ceph docs.

    Use Case

    Use Client CRD in case you want to integrate Rook with with applications that are using LibRBD directly. For example for OpenStack deployment with Ceph backend use Client CRD to create OpenStack services users.

    Don’t use Client CRD for Flex or CSI driver users, they are created automatically.

    Creating Ceph User

    To get you started, here is a simple example of a CRD to configure a Ceph client with capabilities.

    apiVersion: ceph.rook.io/v1
    kind: CephClient
    metadata:
      name: glance
      namespace: rook-ceph
    spec:
      caps:
        mon: 'profile rbd'
        osd: 'profile rbd pool=images'
    ---
    apiVersion: ceph.rook.io/v1
    kind: CephClient
    metadata:
      name: cinder
      namespace: rook-ceph
    spec:
      caps:
        mon: 'profile rbd'
        osd: 'profile rbd pool=volumes, profile rbd pool=vms, profile rbd-read-only pool=images'
    

    Prerequisites

    This guide assumes you have created a Rook cluster as explained in the main Quickstart guide