Skip to content

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

ArgumentDescription
[index]Row number from the current listing; run kx state to see it

Options

OptionDescription
-A, --all-namespacesSweep every namespace, as a forest of per-namespace trees; nodes are indexed continuously across it
--htmlRender the tree as HTML and serve it in a browser
--jsonPrint the ownership graph as JSON instead of a tree
-n, --namespace stringNamespace to sweep; defaults to the current namespace
--no-indexSkip assigning indexes to tree nodes and don’t update state
--no-openServe the HTML report without opening a browser
--out stringWrite the HTML report to this file instead of serving it in a browser
--port intPort to serve the HTML report on; 0 picks a free one

Global options

OptionDescription
--no-colorDisable styled output
-h, --helpShow 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