Commands Cheat Sheet

Evaluating engineering tools? Get the comparison in Google Sheets

(Perfect for making buy/build decisions or internal reviews.)

Most-used commands
Your email is safe thing.

Thankyou for your submission

We have sent the cheatsheet on your email!
Oops! Something went wrong while submitting the form.

Connection

kubectl get pods -n rook-ceph
List all Rook-Ceph pods

kubectl get cephclusters -n rook-ceph
Get status of Ceph clusters

kubectl -n rook-ceph get deployment
List all deployments in rook-ceph namespace

Status

kubectl -n rook-ceph get cephclusters -o yaml
Get detailed cluster configuration

kubectl -n rook-ceph get cephblockpools
List Ceph block pools

kubectl -n rook-ceph get cephfilesystems
List Ceph filesystems

kubectl -n rook-ceph get cephobjectstores
List Ceph object stores

kubectl -n rook-ceph describe cephcluster
Get detailed cluster status

Tools

kubectl -n rook-ceph exec -it $(kubectl -n rook-ceph get pod -l app=rook-ceph-tools -o jsonpath='{.items[0].metadata.name}') -- bash
Connect to the Rook-Ceph tools pod

kubectl -n rook-ceph exec -it $(kubectl -n rook-ceph get pod -l app=rook-ceph-tools -o jsonpath='{.items[0].metadata.name}') -- ceph status
Check overall Ceph cluster status

kubectl -n rook-ceph exec -it $(kubectl -n rook-ceph get pod -l app=rook-ceph-tools -o jsonpath='{.items[0].metadata.name}') -- ceph osd status
Check status of OSDs

kubectl -n rook-ceph exec -it $(kubectl -n rook-ceph get pod -l app=rook-ceph-tools -o jsonpath='{.items[0].metadata.name}') -- ceph df
Check storage usage

Debugging

kubectl -n rook-ceph logs
View logs of a specific pod

kubectl -n rook-ceph exec -it -- bash
Connect to a specific pod

kubectl -n rook-ceph describe pod
Get detailed info about specific pod

Storage Management

kubectl -n rook-ceph get pv
List all persistent volumes

kubectl -n rook-ceph get pvc
List all persistent volume claims

kubectl -n rook-ceph get storageclass
List storage classes

kubectl apply -f
Create or update a storage class

Cleanup

kubectl delete -f
Delete the Ceph cluster

kubectl delete -f
Delete the operator

kubectl delete -f
Delete common resources