https://github.com/onuar/kubectl-resource
Sums clusters' cpu/memory up
https://github.com/onuar/kubectl-resource
Last synced: 4 months ago
JSON representation
Sums clusters' cpu/memory up
- Host: GitHub
- URL: https://github.com/onuar/kubectl-resource
- Owner: onuar
- Created: 2020-10-14T11:49:06.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-06-16T11:08:08.000Z (about 4 years ago)
- Last Synced: 2023-04-08T21:01:20.941Z (about 2 years ago)
- Language: JavaScript
- Size: 10.7 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# kubectl-resource
Useful for overall cluster resources (cpu and mem limit). It works on ```kubectl config current-context```. So you should be sure that you are working on right context.## Prerequisites
* Kubectl
* Jq (Jid for debugging and finding Jq pattern out)## Install
`npm i`## Run
```npm run start -- --namespace=my-team --clusterCount=3```## For service level details
```npm run start -- --namespace=my-team --clusterCount=3 --detailed```## Prints results as csv
```npm run start -- --namespace=my-team --clusterCount=3 --csv```