Ceph Cluster

apiVersion: ceph.rook.io/v1
kind: CephCluster
metadata:
  name: rook-ceph
spec:
  cephVersion:
    image: ceph/ceph:v15.2.5
  dataDirHostPath: /var/lib/rook
  mon:
    count: 3
    allowMultiplePerNode: true
  storage:
    useAllNodes: true
    useAllDevices: true

Ceph Resources

apiVersion: ceph.rook.io/v1
kind: CephBlockPool
metadata:
  name: glance-pool
spec:
  failureDomain: host
  replicated:
    size: 2
  deviceClass: hdd
---
apiVersion: ceph.rook.io/v1
kind: CephClient
metadata:
  name: glance
spec:
  caps:
    mon: 'profile rbd'
    osd: 'profile rbd pool=glance-pool'
---
apiVersion: ceph.rook.io/v1
kind: CephBlockPool
metadata:
  name: cinder-pool
spec:
  failureDomain: host
  replicated:
    size: 2
  deviceClass: hdd
---
apiVersion: ceph.rook.io/v1
kind: CephClient
metadata:
  name: cinder
spec:
  caps:
    mon: 'profile rbd'
    osd: 'profile rbd pool=cinder-pool, profile rbd-read-only pool=glance-pool'
---
apiVersion: ceph.rook.io/v1
kind: CephBlockPool
metadata:
  name: gnocchi-pool
spec:
  failureDomain: host
  replicated:
    size: 2
  deviceClass: hdd
---
apiVersion: ceph.rook.io/v1
kind: CephBlockPool
metadata:
  name: replicapool
  namespace: yaook
spec:
  failureDomain: host
  replicated:
    size: 2
---
apiVersion: ceph.rook.io/v1
kind: CephClient
metadata:
  name: gnocchi
spec:
  caps:
    mon: 'profile rbd'
    osd: 'profile rbd pool=gnocchi-pool'