Skip to main content

Package to get PVC storage 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

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.1.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.1-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pvcpie-0.1.1.tar.gz
  • Upload date:
  • Size: 2.6 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.1.tar.gz
Algorithm Hash digest
SHA256 88fb410f00d5624f094076af8dc1a60646154ca21f292bfcd58badf20bc221cf
MD5 b38a23ad0d1a71e1a4294027be3f7dbe
BLAKE2b-256 5ee407e427e67a92e96ce5d1841f3b1b9885bd790b6df5a7f6fccfaddcb09803

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pvcpie-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1c05cf8f30a434726a689bdf3a2832783dff2194e9d873cfd4c7fcb4225e413d
MD5 e34e1fe328c60ef1837ef98455d142e2
BLAKE2b-256 fe96901e4b51a43a7355095f2fa7a83820a592226270230ca220dbbabbc5b248

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