Skip to content

kubectl plugin to browse Kubernetes object hierarchies as a tree πŸŽ„ (star the repo if you are using)

License

Notifications You must be signed in to change notification settings

alam0rt/kubectl-tree

This branch is 9 commits ahead of, 2 commits behind ahmetb/kubectl-tree:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

eaca17f Β· Oct 22, 2024

History

75 Commits
Oct 22, 2024
Jan 28, 2020
Oct 22, 2024
Dec 24, 2019
Sep 7, 2021
Sep 7, 2021
Dec 22, 2019
Dec 15, 2021
Oct 22, 2024
Dec 9, 2023

Repository files navigation

kubectl tree logo

kubectl tree

A kubectl plugin to explore ownership relationships between Kubernetes objects through ownersReferences on the objects.

The kubectl lineage plugin is very similar to kubectl tree, but it understands logical relationships between some API objects without needing ownerReferences.

Installation

Use krew plugin manager to install:

kubectl krew install tree
kubectl tree --help

Demo

Example (Deployment):

example Kubernetes deployment object hierarchy

Example (Knative Service):

example Kubernetes object hierarchy with Knative Service

Example (Agones Fleet):

example Kubernetes object hierarchy with 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.

About

kubectl plugin to browse Kubernetes object hierarchies as a tree πŸŽ„ (star the repo if you are using)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 100.0%