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.

The Client CRD is not needed for Flex or CSI driver users. The drivers create the needed users automatically.

Creating Ceph User

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

  1. apiVersion: ceph.rook.io/v1
  2. kind: CephClient
  3. metadata:
  4. name: glance
  5. namespace: rook-ceph
  6. spec:
  7. caps:
  8. mon: 'profile rbd'
  9. osd: 'profile rbd pool=images'
  10. ---
  11. apiVersion: ceph.rook.io/v1
  12. kind: CephClient
  13. metadata:
  14. name: cinder
  15. namespace: rook-ceph
  16. spec:
  17. caps:
  18. mon: 'profile rbd'
  19. 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