Skip to main content

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 :

pip install pvcpie

Development guide

To run this on your local, clone this repo and run following commands:

  1. Install poetry on your local if not present
pip install poetry
  1. Go to project directory and install dependencies using
poetry install
  1. 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

pvcpie-0.1.2.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pvcpie-0.1.2-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file pvcpie-0.1.2.tar.gz.

File metadata

  • Download URL: pvcpie-0.1.2.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.10.4 Darwin/19.6.0

File hashes

Hashes for pvcpie-0.1.2.tar.gz
Algorithm Hash digest
SHA256 e8fca565edbaaa43a8f898488c8fa7d0ee1f0092e3e3cc9011589ac232f69da2
MD5 1c8ba441bc7773fbe6db0631278dda3f
BLAKE2b-256 e74a146d5c6ea23c0246698a6011dd2b8b51badb6536ba5861bf73f6172e90a3

See more details on using hashes here.

File details

Details for the file pvcpie-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: pvcpie-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.10.4 Darwin/19.6.0

File hashes

Hashes for pvcpie-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a211a71c89f1a4ee093f9778e9b4cd59f0639f974e3c825f92c332086334c610
MD5 1262d2cd552eff3a02d1307c5e356286
BLAKE2b-256 a78c22e762ed2e5d2d27399c44daf4801a5d86312d727225dfe25b3975519040

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page