kube-capacity is a simple CLI tool that provides a consolidated overview of resource requests, limits, and utilization across Kubernetes clusters.
A simple CLI that provides an overview of the resource requests, limits, and utilization in a Kubernetes cluster
This tool is designed for Kubernetes administrators and DevOps engineers who need to monitor and optimize resource allocation within their clusters. It helps users quickly assess CPU and memory usage, requests, and limits at both node and pod levels, enabling better capacity planning and troubleshooting.
To use the utilization feature, ensure the Kubernetes cluster has a functioning metrics-server installed. When installed via Krew, the command name changes to `kubectl resource-capacity`. This tool is best suited for ongoing cluster resource monitoring and capacity planning rather than deep security scanning.
Access pre-built Go binaries from the GitHub releases page
Install via Homebrew: `brew tap robscott/tap`
Install via Homebrew: `brew install robscott/tap/kube-capacity`
Install via Krew: `kubectl krew install resource-capacity` (use `kubectl resource-capacity` if installed this way)
kube-capacity
Displays a summary of CPU and memory requests and limits for all nodes in the cluster, including cluster-wide totals.
kube-capacity --pods
Includes detailed pod-level resource requests and limits alongside node summaries.
kube-capacity --util
Adds current CPU and memory utilization metrics to the output, showing how usage compares to requests and limits.
kubectl resource-capacity
Equivalent command when kube-capacity is installed via Krew plugin.