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

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: pvcpie-0.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 b038c693b2bd55e8d65892cf3f78cdacf84509659d332344dc6321b36ae3ac18
MD5 565d49574aa474c1fb9fdb20f1adbb14
BLAKE2b-256 3f7fb338d914dc41397973e2741ab740c8ddeff55ac68a05303280de4b08cd50

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pvcpie-0.1.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b729e9b29d31b19f320dadf817122cfe457f769d6f6ba3790a6f90fe8db63a22
MD5 b88980494e3c6ac3e7fcdb7b52d15b79
BLAKE2b-256 c2258e3899a79ada574dc8fb61c3982f2d9f7618cf79dd03d9cd095efe548038

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