kubectl tree ?
A kubectl plugin to explore ownership relationships between Kubernetes objects
through ownersReferences on them.
Installation
Use krew plugin manager to install
kubectl krew install tree
kubectl tree --help
Demo
Example (Deployment):
Example (Knative Service):
Example (Agones Fleet):
Flags
By default, the plugin will only search "namespaced" objects in the same
namespace as the specified object.
You can use the -A
or --all-namespaces
flag to search namespaced and
non-namespaced objects in all namespaces.
Author
Ahmet Alp Balkan @ahmetb.
Special acknowledgement: This tool is heavily inspired by @nimakaviani's
knative-inspect as it's a
generalized version of it.
License
Apache 2.0. See LICENSE.
This is not an official Google project.