LinuxCommandLibrary

kube-capacity

kube-capacity

TLDR

Output a list of nodes with the total CPU and Memory resource requests and limits

$ kube-capacity
copy


Include pods
$ kube-capacity -p
copy


Include utilization
$ kube-capacity -u
copy

Help

kube-capacity provides an overview of the resource requests, limits, and utilization in a Kubernetes cluster. 

Usage:
  kube-capacity [flags] 
  kube-capacity [command] 

Available Commands:
  help        Help about any command 
  version     Print the version number of kube-capacity 

Flags:
  -c, --containers                includes containers in output 
      --context string            context to use for Kubernetes config 
  -h, --help                      help for kube-capacity 
  -n, --namespace-labels string   labels to filter namespaces with 
      --node-labels string        labels to filter nodes with 
  -o, --output string             output format for information (supports: [table json yaml]) (default "table") 
  -l, --pod-labels string         labels to filter pods with 
  -p, --pods                      includes pods in output 
      --sort string               attribute to sort results be (supports: [cpu.util cpu.request cpu.limit mem.util mem.request mem.limit name]) (default "name") 
  -u, --util                      includes resource utilization in output 

Use "kube-capacity [command] --help" for more information about a command. 

Copied to clipboard