kubectl/pkg/cmd/top
Daein Park 5acf82be0d Add a flag to enable "Capacity" instead of "Allocatable" for an actual node memory total usage.
If "Allocatable" is used to a node total memory size, under high memory pressure or pre-reserved memory value is bigger, the "MEMORY%" can be bigger than 100%.
For suppressing the confusing, add a option to show node real memory usage based on "Capacity".
* Reference: https://github.com/kubernetes/kubernetes/issues/86499

Kubernetes-commit: 862937bf1c7975d3f54ae47a2958e47f2c50150f
2021-06-16 21:25:52 +09:00
..
top.go Minor adjustments to descriptions and example text 2021-07-06 15:05:26 -04:00
top_node.go Add a flag to enable "Capacity" instead of "Allocatable" for an actual node memory total usage. 2021-06-16 21:25:52 +09:00
top_node_test.go Revert "Add Go tests for custom completions" 2021-05-22 20:47:14 -04:00
top_pod.go Minor adjustments to descriptions and example text 2021-07-06 15:05:26 -04:00
top_pod_test.go Added field-selector option for kubectl top pod 2021-05-19 15:54:39 -04:00
top_test.go Fix kubectl top sort-by cpu and sort-by memory options 2019-09-04 16:28:21 +02:00