Linux command
kube-capacity 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Show cluster capacity
kube-capacity
Show pod resource usage
kube-capacity --pods
Show utilization percentages
kube-capacity --util
Show specific namespace
kube-capacity --namespace [default]
Show containers detail
kube-capacity --containers
说明
kube-capacity provides a simple view of Kubernetes resource requests, limits, and utilization. Displays CPU and memory allocation across nodes, pods, and containers. Helps identify over-provisioned or under-utilized resources.
参数
- --pods
- Show pod-level resource usage.
- --containers
- Show container-level details.
- --util
- Show utilization percentages.
- --namespace _name_
- Filter by namespace.
- --node-labels _selector_
- Filter by node labels.
- --sort _field_
- Sort output by field.
FAQ
What is the kube-capacity command used for?
kube-capacity provides a simple view of Kubernetes resource requests, limits, and utilization. Displays CPU and memory allocation across nodes, pods, and containers. Helps identify over-provisioned or under-utilized resources.
How do I run a basic kube-capacity example?
Run `kube-capacity` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does --pods do in kube-capacity?
Show pod-level resource usage.