Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/evanshortiss/kube-count-resources
Nifty CLI to count resource request and limits for a List of Deployments
https://github.com/evanshortiss/kube-count-resources
Last synced: 21 days ago
JSON representation
Nifty CLI to count resource request and limits for a List of Deployments
- Host: GitHub
- URL: https://github.com/evanshortiss/kube-count-resources
- Owner: evanshortiss
- Created: 2021-06-25T10:05:44.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-06-25T13:15:21.000Z (over 3 years ago)
- Last Synced: 2024-10-19T23:20:10.089Z (25 days ago)
- Language: JavaScript
- Size: 14.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Kube Count Resource
A CLI to simplify counting requests and limits used by a List of Kubernetes
deployments.## Requirements
* Node.js v12+
## Usage
The following examples use `npx`, but you can also install this as a global
CLI via `npm install -g kcr` and drop `npx`.### Pipe
```bash
kubectl get deployments -o json | npx kcrRequests: 0.500 Cores / 1.000 Gi
Limits: 0.700 Cores / 1.500 Gi
```OpenShift is also supported, so you can pass Deployments and DeploymentConfigs.
```bash
oc get dc,deployments -o json --all-namespaces | npx kcrRequests: 0.500 Cores / 1.000 Gi
Limits: 0.700 Cores / 1.500 Gi
```### File List
```bash
kubectl get deployments -o json > deployments.jsonnpx kcr deployments.json
Requests: 0.500 Cores / 1.000 Gi
Limits: 0.700 Cores / 1.500 Gi
```