-
Notifications
You must be signed in to change notification settings - Fork 945
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
kubectl plugin to query openebs component status #2946
Comments
|
@kmova |
|
Hi @Raman-Kumar -- this is a good place to start: There is some amount of code to fetch above details in the form of mayactl here: Also a lot of dev hangs out on the Kubernetes slack #openebs channel. |
|
@kmova
|
|
Hi @tetsuya28, Thanks for the interest! Yes you are right. The goal is to have Post that a proposal can be raised here: https://github.com/openebs/openebs/tree/master/contribute/design/1.x with the suggested options to be added. We could also start with a google doc proposal and discuss that over the slack before raising the PR. Feel free to reach out on the Kubernetes slack openebs channel. |
|
@kmova |
|
Hey @kmova ! I am willing to get mentored for this issue for the Community Bridge program. Can you please help me in getting started with it? Thanks |
|
@championshuttler -- can you please apply through the community bridge program, providing some background details and draft proposal. |
A draft proposal to tackle openebs#2946 Signed-off-by: Vani Singh <vanisingh@live.co.uk>
|
Issues go stale after 90d of inactivity. |
|
As part of the 2020 Community Bridge program, there was progress made to providing initial repo for https://github.com/openebs/openebsctl. This issue is being opened up again for the 2021 spring mentorship program to build this functionality. |
|
Hi @kmova! I'm interested in taking this up. I will refer to the documents linked above and get back to you with questions/ideas on slack? |
|
sign up |
|
Issues go stale after 90d of inactivity. |
|
This is an epic issue with ongoing implementation tracked at https://github.com/openebs/openebsctl |
|
Issues go stale after 90d of inactivity. Please comment or re-open the issue if you are still interested in getting this issue fixed. |
|
More information on this issue is listed on issues @ openebs/openebsctl#36 & openebs/openebsctl#83 |
|
With release 2.12.0, |
OpenEBS is completely Kubernetes native and is implemented using microservices. The microservices are deployed as Kubernetes deployments, statefulset or daemon sets and so forth.
In order to know the status of the components, a user has to run multiple kubectl commands to check that all the OpenEBS related microservices are up and running.
For instance, a cStor volume comprises of one or more cStor Pool Deployments and a cStor Target Deployment. To know the status of a cStor volume, the user is expected to run the following kubectl commands:
kubectl get cstorvolume -n openebs(check for the status of the volume and if not-healthy, check for the replica and target status.kubectl get pods -n openebsto check if the replica and target pods are runningkubectl get csp -n openebsandkubectl get cvr -n openebsfor checking if the replica has any additional issues, if the node that was running a csp might be down and so forth.The proposal is to provide a kubectl plugin for openebs that will allow running simple CLI commands that can perform required kubectl queries and present the information in an easy-to-consume manner.
Using kubectl plugin, it would be great if a user can type a command like:
kubectl openebs volume-status --name <cstor-pv-name>The output for this command could be something like:
Similarly, there can be many other CLI options like:
kubectl openebs cstor-status --name <cstor-pool-cluster-name>kubectl openebs statuskubectl openebs upgrade volume --name <cstor-volume-name> --to-verstion <new-version>The text was updated successfully, but these errors were encountered: