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.3.tar.gz (2.6 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.3-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pvcpie-0.1.3.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

Hashes for pvcpie-0.1.3.tar.gz
Algorithm Hash digest
SHA256 f861c6d7b572218f25506e975642836e8bf7dc54a3d0950faf7b9c29ae9516a9
MD5 d45760b9eb900a3668f9d5c1258e7ff7
BLAKE2b-256 8cd67098fdbb724fcbde55a9871ff2964f425768fdc6333f2ebdb85138c45803

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pvcpie-0.1.3-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.12.1 Linux/6.5.0-1022-azure

File hashes

Hashes for pvcpie-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 5451fbfeb010e222191a9b3b023b66ea2092bfe3498bf7ca4822b17cf48ff856
MD5 9d4a14d0eb8089f4f89ff3f2b2242952
BLAKE2b-256 774c1c458f055bbed8c6d9587d7504a3e142efe8c8ad216de3a054189db6e10d

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