docs: add krew plugin to the troubleshooting docs
It's been a while we have the krew plugin capability for
troubleshooting that makes it easier but not added to rook
docs.
So adding it to rook docs and bug template
Closes: https://github.com/rook/rook/issues/10765
Signed-off-by: parth-gr <paarora@redhat.com>
(cherry picked from commit 13f916df7d)
This commit is contained in:
1 parent
c8409edf47
commit
28c785c790
2 files changed
+61
-3
No files matched your search
@@ -21,12 +21,23 @@ labels: bug
|
||||
**File(s) to submit**:
|
||||
|
||||
* Cluster CR (custom resource), typically called `cluster.yaml`, if necessary
|
||||
|
||||
**Logs to submit**:
|
||||
|
||||
* Operator's logs, if necessary
|
||||
* Crashing pod(s) logs, if necessary
|
||||
|
||||
To get logs, use `kubectl -n <namespace> logs <pod name>`
|
||||
When pasting logs, always surround them with backticks or use the `insert code` button from the Github UI.
|
||||
Read [GitHub documentation if you need help](https://help.github.com/en/articles/creating-and-highlighting-code-blocks).
|
||||
To get logs, use `kubectl -n <namespace> logs <pod name>`
|
||||
When pasting logs, always surround them with backticks or use the `insert code` button from the Github UI.
|
||||
Read [GitHub documentation if you need help](https://help.github.com/en/articles/creating-and-highlighting-code-blocks).
|
||||
|
||||
**Cluster Status to submit**:
|
||||
|
||||
* Output of krew commands, if necessary
|
||||
|
||||
To get the health of the cluster, use `kubectl rook-ceph health`
|
||||
To get the status of the cluster, use `kubectl rook-ceph ceph status`
|
||||
For other commands and how to use Krew Read [Krew Plugin](https://rook.io/docs/rook/latest/Troubleshooting/krew-plugin)
|
||||
|
||||
**Environment**:
|
||||
* OS (e.g. from /etc/os-release):
|
||||
|
||||
@@ -0,0 +1,47 @@
|
||||
---
|
||||
title: Krew Plugin
|
||||
---
|
||||
|
||||
## Installation
|
||||
|
||||
* Install [Krew](https://krew.sigs.k8s.io/docs/user-guide/setup/install/)
|
||||
* Install Krew rook-ceph plugin
|
||||
```console
|
||||
kubectl krew install rook-ceph
|
||||
```
|
||||
|
||||
## Working
|
||||
|
||||
Krew rook-ceph plugin will help in troubleshooting the cluster as by getting the stauts of the working cluster.
|
||||
|
||||
### Example:
|
||||
|
||||
* Get the ceph status:
|
||||
```console
|
||||
kubectl rook-ceph ceph status
|
||||
```
|
||||
|
||||
Output:
|
||||
```console
|
||||
cluster:
|
||||
id: a1ac6554-4cc8-4c3b-a8a3-f17f5ec6f529
|
||||
health: HEALTH_OK
|
||||
|
||||
services:
|
||||
mon: 3 daemons, quorum a,b,c (age 11m)
|
||||
mgr: a(active, since 10m)
|
||||
mds: 1/1 daemons up, 1 hot standby
|
||||
osd: 3 osds: 3 up (since 10m), 3 in (since 8d)
|
||||
|
||||
data:
|
||||
volumes: 1/1 healthy
|
||||
pools: 6 pools, 137 pgs
|
||||
objects: 34 objects, 4.1 KiB
|
||||
usage: 58 MiB used, 59 GiB / 59 GiB avail
|
||||
pgs: 137 active+clean
|
||||
|
||||
io:
|
||||
client: 1.2 KiB/s rd, 2 op/s rd, 0 op/s wr
|
||||
```
|
||||
|
||||
Reference: [kubectl-rook-ceph](https://github.com/rook/kubectl-rook-ceph#kubectl-rook-ceph)
|
||||
Reference in new issue
Block a user