Ghetto ODF

rook-ceph on single node Openshift cluster

This is a modification of the deployment files from rook-ceph made to run on an Openshift SNC with LVM PVCs.

Assumptions

  • A working Openshift SNC with the LVM Storage operator

Deploy rook-ceph on single node OCP

git clone git@gitlab.com:zews79/ghetto-odf.git
cd ghetto-odf
oc create -f crds.yaml -f common.yaml
oc create -f operator-openshift.yaml
oc create -f cluster-on-pvc-snc.yaml
oc create -f storageclass-cephfs-snc.yaml
oc create -f storageclass-rbd-snc.yaml

Access the Ceph dashboard

Create a route

oc create route passthrough rook --service='rook-ceph-mgr-dashboard' --port='https-dashboard' --insecure-policy='Redirect' -n rook-ceph

Get the dashboard password

oc -n rook-ceph get secret rook-ceph-dashboard-password -o jsonpath="{['data']['password']}" | base64 --decode && echo