kx top
Lists pod or node CPU and memory usage with kubectl top, assigns indexes, and shows CPU%/MEM% — computed against each pod’s limits for pods, native to kubectl for nodes.
Unrecognized flags are passed through to kubectl.
Usage
kx top [OPTIONS] [resource] [kubectl flags]Arguments
| Argument | Description |
|---|---|
[resource] | pods (the default) or nodes |
Options
| Option | Description |
|---|---|
-A, --all-namespaces | List pods across every namespace; each row is indexed and carries its own namespace. Not for nodes, which are not in a namespace |
--html | Render the listing as HTML and serve it in a browser |
--json | Print the listing as JSON instead of a table |
-m, --match string | Match by name (substring, case-insensitive) |
-n, --namespace string | Namespace to list pods from; defaults to the current namespace. Not for nodes, which are not in a namespace |
--no-limits | Skip the CPU%/MEM% columns (one fewer kubectl call) |
--no-open | Serve the HTML report without opening a browser |
--out string | Write the HTML report to this file instead of serving it in a browser |
--port int | Port to serve the HTML report on; 0 picks a free one |
Global options
| Option | Description |
|---|---|
--no-color | Disable styled output |
-h, --help | Show this message and exit |
Examples
kx top
kx top nodes
kx top -m web
kx top --no-limits
kx top --html
kx top --json
kx top --out top.html