How can I expose the Rook Ceph Dashboard in kURL

We have a customer who’s running a 5 node kURL cluster with Rook/Ceph. We’ve identified that the issue is with one of the Rook drives at >95% capacity. We exec’d into the rook-tools pod and listed the storage with ceph os df tree. Is there a better way to do this?

It is possible to expose the ceph dashboard like so:

Create a NodePort service. The following example creates one on port 30000.

echo 'apiVersion: v1
kind: Service
metadata:
  name: rook-ceph-mgr-dashboard-np
  namespace: rook-ceph
spec:
  type: NodePort
  ports:
  - name: https-dashboard
    port: 8443
    protocol: TCP
    targetPort: 8443
    nodePort: 30000
  selector:
    app: rook-ceph-mgr
    mgr_role: active
    rook_cluster: rook-ceph
' | kubectl apply -n rook-ceph -f -

You should then be able to access the dashboard at https://[server ip]:30000.

You can log in with username “admin”. To get the password you can run the following:

kubectl -n rook-ceph get secrets -ojsonpath='{.data.password}' rook-ceph-dashboard-password  | base64 -d; echo