Skip to content

Commit 85ecb8f

Browse files
author
Massimo Schembri
committed
Add readme.md
1 parent 81a156d commit 85ecb8f

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

README.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# K8s request/limit suggester
2+
3+
This tool simplifies the gathering of data about the resource consumption of your pods.
4+
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.
5+
6+
# DISCLAIMER
7+
At the moment the tool has been tested only against Openshift Clusters, a more agnostic version is coming soon!
8+
9+
# Requirements
10+
To run the script you need:
11+
* An authenticated kubectl session
12+
* A jwt token with the roles to grab data from prometheus
13+
14+
All the required libraries can be found in requirements.txt
15+
16+
To install the requirements:
17+
```commandline
18+
pip3 install -r requirements.txt
19+
```
20+
21+
# Invocation
22+
```commandline
23+
python3 main.py -u <prometheus URL> -n <comma separated list of namespaces> [-o <output-file>]
24+
```
25+
Example
26+
```commandline
27+
python3 main.py -u https://mypromehtues.prometheus -n bar,foo -o myexcel.xlsx
28+
```

0 commit comments

Comments
 (0)