kx tree
Graphs ownership references from controllers down to containers. With no index, graphs every workload in the current namespace, or in the namespace given by -n, or every namespace as a forest with -A. A Namespace index graphs that namespace. Assigns indexes to tree nodes by default; --no-index skips that.
Usage
kx tree [OPTIONS] [index]Arguments
| Argument | Description |
|---|---|
[index] | Row number from the current listing; run kx state to see it |
Options
| Option | Description |
|---|---|
-A, --all-namespaces | Sweep every namespace, as a forest of per-namespace trees; nodes are indexed continuously across it |
--html | Render the tree as HTML and serve it in a browser |
--json | Print the ownership graph as JSON instead of a tree |
-n, --namespace string | Namespace to sweep; defaults to the current namespace |
--no-index | Skip assigning indexes to tree nodes and don’t update state |
--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 tree
kx tree 1
kx tree --no-index
kx tree -A
kx tree -n prod --html
kx tree --json
kx tree --out tree.html