Skip to content

Export data from your k8s cluster and get insights about your resources

Notifications You must be signed in to change notification settings

peterparser/K8s-resources-suggester

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

K8s request/limit suggester

This tool simplifies the gathering of data about the resource consumption of your pods. In particular, it outputs an excel table with the current configuration of your deployments and statefulsets and their resources, also the tool estimates the requests and the limits based on prometheus data.

Requirements

To run the script you need:

  • An authenticated kubectl session
  • A jwt token with the roles to grab data from prometheus

All the required libraries can be found in requirements.txt

To install the requirements:

pip3 install -r requirements.txt

Invocation

python3 main.py -u <prometheus URL> -n <comma separated list of namespaces> [-t {kubernetes|openshift}] [-o <output-file>]

Example

python3 main.py -u https://mypromehtues.prometheus -n bar,foo -o myexcel.xlsx

About

Export data from your k8s cluster and get insights about your resources

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages