Package to get PVC usage information in a cluster.
Project description
Pvcpie 🍰
A tool to get pvc usage information from kubernetes for a cluster. It uses kubernetes nodes metric data to fetch volumes for and calculate their disk usage.
Usage
You can directly install it from pip & call pvcpie from your terminal:
pip install pvcpie
pvcpie
Development guide
To run this on your local, clone this repo and run following commands:
- Install poetry on your local if not present
pip install poetry
- Go to project directory and install dependencies using
poetry install
- To run on your CLI, run command:
poetry run pvcpie
or activate poetry shell using poetry shell
pvcpie
If you want to use incluster config instead of kube config use -i flag:
pvcpie -i
or
poetry run pvcpie -i
or run this in api mode to get the json data.
poetry run pvcpie --api
TODO: [ ] Add a swagger page to get metrics in API mode from cluster
Customize
To customize it for other requirements, KubernetesUtils class can be used. Example:
kts= KubernetesUtils()
nodes = kts.list_all_nodes()
for node in nodes:
res = kts.get_node_summary(node)
volumes = kts.get_pvc_summary(res)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pvcpie-0.1.4.tar.gz.
File metadata
- Download URL: pvcpie-0.1.4.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.1 Linux/6.5.0-1022-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
06e7dc588cb16879761cee841dcfc4cd3ff170c35867ef568e309551ab3a3159
|
|
| MD5 |
b429900ba689f3a27bb07e3c1acd32c9
|
|
| BLAKE2b-256 |
4685c80b31cdf11d672764f4ebfad5feeb1fdfbd86e5a5833c6198d7b55096d0
|
File details
Details for the file pvcpie-0.1.4-py3-none-any.whl.
File metadata
- Download URL: pvcpie-0.1.4-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.1 Linux/6.5.0-1022-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7077e698d79da51ad69b5983481198994d225fcd7a059877303f1aaa7cc0da55
|
|
| MD5 |
22de21574c271f113b7b7f1154034f20
|
|
| BLAKE2b-256 |
bf6e2e1fbddf745404c05b05b0a6667ac5ac9cdd806ed509f6602ee902ea4764
|