Skip to content

Commit eb37b0c

Browse files
author
Harsh Vardhan
authored
Update README for release (#78)
Signed-off-by: Harsh Vardhan <[email protected]>
1 parent 973af0a commit eb37b0c

File tree

2 files changed

+109
-28
lines changed

2 files changed

+109
-28
lines changed

README.md

Lines changed: 109 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<img width="300" align="right" alt="OpenEBS Logo" src="https://raw.githubusercontent.com/cncf/artwork/master/projects/openebs/stacked/color/openebs-stacked-color.png" xmlns="http://www.w3.org/1999/html">
22

3-
## OpenEBSCTL
3+
# OpenEBSCTL
44

55

66
[![Go Report Card](https://goreportcard.com/badge/github.com/openebs/openebsctl?)](https://goreportcard.com/report/github.com/openebs/openebsctl)
@@ -15,12 +15,12 @@
1515
OpenEBSCTL is a kubectl plugin to manage OpenEBS storage components.
1616

1717

18-
### Project Status
18+
## Project Status
1919

2020
**Alpha**. Under active development and seeking [contributions from the community](#contributing).
2121
The CLI currently supports managing `cStor`, `Jiva`, `LocalPV-LVM`, `LocalPV-ZFS` Cas-Engines.
2222

23-
### Table of Contents
23+
## Table of Contents
2424
* [Installation](#installation)
2525
* [Build](#build)
2626
* [Flags](#flags)
@@ -36,43 +36,44 @@ The CLI currently supports managing `cStor`, `Jiva`, `LocalPV-LVM`, `LocalPV-ZFS
3636
* [LocalPV-LVM](#localpv-lvm)
3737
* [Get LocalPV-LVM volumes](#get-localpv-lvm-volumes)
3838
* [Get LocalPV-LVM VolumeGroups](#get-localpv-lvm-volumegroups)
39+
* [Describe LocalPV-LVM volumeGroups](#describe-localpv-lvm-volumeGroups)
40+
* [Describe LocalPV-LVM volumes](#describe-localpv-lvm-volumes)
3941
* [LocalPV-ZFS](#localpv-zfs)
4042
* [Get LocalPV-ZFS volumes](#get-localpv-zfs-volumes)
4143
* [Get LocalPV-ZFS Pools](#get-localpv-zfs-pools)
44+
* [Describe LocalPV-ZFS volumes](#describe-localpv-zfs-volumes)
45+
* [Describe LocalPV-ZFS pools](#describe-localpv-zfs-pools)
4246
* [BlockDevice](#blockdevice)
4347
* [Get BlockDevices by Nodes](#get-blockdevices-by-nodes)
4448
* [PersistentVolumeClaims](#persistentvolumeclaims)
4549
* [Describe pvcs](#describe-pvcs)
50+
* [Debugging pvcs](#debugging-pvcs)
4651
* [Contributing](#contributing)
4752

4853

49-
### Installation
54+
## Installation
5055

5156
OpenEBSCTL is available on Linux, macOS and Windows platforms.
5257

58+
* (**Recommended**) The latest binary can be installed via `krew`
59+
```bash
60+
$ kubectl krew install openebs
61+
...
62+
...
63+
$ kubectl krew list
64+
PLUGIN VERSION
65+
openebs v0.2.0
66+
...
67+
...
68+
# to update the openebs plugin
69+
$ kubectl krew upgrade openebs
70+
...
71+
...
72+
```
73+
5374
* Binaries for Linux, Mac and Windows are available as tarballs and zip in the [release](https://github.com/openebs/openebsctl/releases) page.
54-
* For Linux, download the respective tarball from [release](https://github.com/openebs/openebsctl/releases) page and :-
55-
```shell
56-
tar -xvf kubectl-openebs_v0.2.0_Linux_x86_64.tar.gz
57-
cd kubectl-openebs_v0.2.0_Linux_x86_64
58-
sudo mv kubectl-openebs /usr/local/bin/
59-
```
60-
Or, download the `debian` package from the [release](https://github.com/openebs/openebsctl/releases) page and double click it launch the installer if using GUI.<br/><br/>
61-
Or, we can also use script to install the latest version :-
62-
```shell
63-
wget https://raw.githubusercontent.com/openebs/openebsctl/develop/scripts/install-latest.sh -O - | bash
64-
```
65-
* For Mac, download the respective tarball from [release](https://github.com/openebs/openebsctl/releases) page and :-
66-
```shell
67-
tar -xzvf kubectl-openebs_v0.2.0_Darwin_x86_64.tar.gz
68-
cd kubectl-openebs_v0.2.0_Darwin_x86_64
69-
sudo mv kubectl-openebs /usr/local/bin/
70-
```
71-
* For Windows, download the respective zip from [release](https://github.com/openebs/openebsctl/releases) page and :-
72-
- Extract the zip, copy the `path` of the folder the contents are in.
73-
- Add the `path` to the `PATH` environment variable.
7475

75-
### Build
76+
## Build
7677

7778
- Clone this repo to your system. `git clone https://github.com/openebs/openebsctl`
7879
- `cd openebsctl`
@@ -107,7 +108,7 @@ OpenEBSCTL is available on Linux, macOS and Windows platforms.
107108
* #### Describe `cStor` volumes
108109
```bash
109110
$ kubectl openebs describe volume pvc-193844d7-3bef-45a3-8b7d-ed3991391b45
110-
111+
111112
pvc-193844d7-3bef-45a3-8b7d-ed3991391b45 Details :
112113
-----------------
113114
NAME : pvc-193844d7-3bef-45a3-8b7d-ed3991391b45
@@ -223,11 +224,50 @@ OpenEBSCTL is available on Linux, macOS and Windows platforms.
223224
$ kubectl openebs get storage --cas-type=lvmlocalpv
224225
NAME FREESIZE TOTALSIZE
225226
worker-sh1
226-
└─lvmvg 1018 GiB 1024 GiB
227+
└─lvmvg 1020 GiB 1024 GiB
227228
228229
worker-sh2
229230
└─lvmvg-1 46.7 GiB 50 GiB
230231
```
232+
* #### Describe `LocalPV-LVM` volumeGroups
233+
```bash
234+
$ kubectl openebs describe storage worker-sh1
235+
worker-sh1 Details :
236+
237+
HOSTNAME : worker-sh1
238+
NAMESPACE : openebs
239+
NUMBER OF POOLS : 1
240+
TOTAL CAPACITY : 1024.0GiB
241+
TOTAL FREE : 1020.0GiB
242+
TOTAL LVs : 1
243+
TOTAL PVs : 1
244+
245+
Volume group details
246+
---------------------
247+
NAME UUID LV COUNT PV COUNT USED PERCENTAGE
248+
lvmvg IgnC8K-OJaA-WBx6-JLYz-HQU3-W8kb-0LHbXy 1 1 0.4%
249+
```
250+
* #### Describe `LocalPV-LVM` volume
251+
```bash
252+
$ kubectl openebs describe vol pvc-9999274f-ad01-48bc-9b21-7c51b47a870c
253+
254+
pvc-9999274f-ad01-48bc-9b21-7c51b47a870c Details :
255+
------------------
256+
Name : pvc-9999274f-ad01-48bc-9b21-7c51b47a870c
257+
Namespace : openebs
258+
AccessMode : ReadWriteOnce
259+
CSIDriver : local.csi.openebs.io
260+
Capacity : 4Gi
261+
PVC : csi-lvmpv
262+
VolumePhase : Bound
263+
StorageClass : openebs-lvmpv
264+
Version : ci
265+
Status : Ready
266+
VolumeGroup : lvmvg
267+
Shared : no
268+
ThinProvisioned : no
269+
NodeID : worker-sh1
270+
```
231271
* #### `LocalPV-ZFS`
232272
* #### Get `LocalPV-ZFS` volumes
233273
```bash
@@ -246,6 +286,41 @@ OpenEBSCTL is available on Linux, macOS and Windows platforms.
246286
node2
247287
└─zfs-test-pool 36 GiB
248288
```
289+
* #### Describe `LocalPV-ZFS volumes`
290+
```bash
291+
$ kubectl openebs describe vol pvc-43fcbc72-a45a-49d5-9ec3-e383fcb91452
292+
293+
pvc-43fcbc72-a45a-49d5-9ec3-e383fcb91452 Details :
294+
-----------------
295+
Name : pvc-43fcbc72-a45a-49d5-9ec3-e383fcb91452
296+
Namespace : openebs
297+
AccessMode : ReadWriteOnce
298+
CSIDriver : zfs.csi.openebs.io
299+
Capacity : 4Gi
300+
PVC : csi-zfspv
301+
VolumePhase : Bound
302+
StorageClass : openebs-zfspv
303+
Version : N/A
304+
Status : Ready
305+
VolumeType : DATASET
306+
PoolName : zfspv-pool
307+
FileSystem : zfs
308+
Compression : off
309+
Deduplication : off
310+
NodeID : worker-sh1
311+
Recordsize : 4k
312+
```
313+
* #### Describe `LocalPV-ZFS pools`
314+
```bash
315+
$ kubectl openebs describe storage node2
316+
317+
node2 Details :
318+
319+
HOSTNAME : node2
320+
NAMESPACE : openebs
321+
NUMBER OF POOLS : 1
322+
TOTAL FREE : 32 GiB
323+
```
249324
* #### `BlockDevice`
250325
* #### Get `BlockDevices` by Nodes
251326
```bash
@@ -302,6 +377,12 @@ OpenEBSCTL is available on Linux, macOS and Windows platforms.
302377
VERSION : 2.1.0
303378
UPGRADING : true
304379
```
380+
* #### Debugging pvcs
381+
_currently supported only for cstor_
382+
```bash
383+
$ kubectl openebs describe pvc mongo --openebs-namespace=openebs --debug
384+
```
385+
![img.png](docs/img.png)
305386

306387
### Contributing
307388

@@ -325,4 +406,4 @@ For more details checkout [CONTRIBUTING.md](./CONTRIBUTING.md).
325406

326407

327408
## License
328-
[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fopenebs%2Fopenebsctl.svg?type=large)](https://app.fossa.com/projects/git%2Bgithub.com%2Fopenebs%2Fopenebsctl?ref=badge_large)
409+
[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fopenebs%2Fopenebsctl.svg?type=large)](https://app.fossa.com/projects/git%2Bgithub.com%2Fopenebs%2Fopenebsctl?ref=badge_large)

docs/img.png

171 KB
Loading

0 commit comments

Comments
 (0)