kubectl Plugin
The Rook kubectl plugin is a tool to help troubleshoot your Rook cluster. Here are a few of the operations that the plugin will assist with:
- Health of the Rook pods
- Health of the Ceph cluster
- Create "debug" pods for mons and OSDs that are in need of special Ceph maintenance operations
- Restart the operator
- Purge an OSD
- Run any
ceph
command
See the kubectl-rook-ceph documentation for more details.
Installation¶
- Install krew
-
Install Rook plugin
Ceph Commands¶
-
Run any
ceph
command withkubectl rook-ceph ceph <args>
. For example, get the Ceph status:Output:
Reference: Ceph Status
Debug Mode¶
Debug mode can be useful when a MON or OSD needs advanced maintenance operations that require the daemon to be stopped. Ceph tools such as ceph-objectstore-tool
, ceph-bluestore-tool
, or ceph-monstore-tool
are commonly used in these scenarios. Debug mode will set up the MON or OSD so that these commands can be run.
-
Start the debug pod for mon b
-
Stop the debug pod for mon b
Reference: Debug Mode