macOS
brew install kubectl-treelocal Homebrew formula metadata
brew
Kubectl plugin to browse Kubernetes object hierarchies as a tree. Version 0.6.0 via Homebrew; verified from local package data.
install
brew install kubectl-treelocal Homebrew formula metadata
nix profile install nixpkgs#kubectl-treenixpkgs package indexes · pkgs/by-name/ku/kubectl-tree/package.nix · source: api.github.com
sudo zypper install kubectl-treeopenSUSE Tumbleweed package metadata · kubectl-tree · source: download.opensuse.org
overview
Kubectl plugin to browse Kubernetes object hierarchies as a tree
history
kubectl-tree is a kubectl plugin for browsing Kubernetes object ownership as a tree. It follows `ownerReferences` between objects, letting users see how resources such as Deployments, ReplicaSets, Pods, Knative Services, or other controllers relate at runtime.
The GitHub repository was created on 2019-12-23 by Ahmet Alp Balkan. Its README says the tool explores ownership relationships through Kubernetes `ownerReferences` and acknowledges inspiration from knative-inspect, generalized beyond a single ecosystem.
Later releases added filters for namespaces, selectors, condition types, API groups, and resources, reflecting its evolution from a tree visualizer into a practical inspection tool for larger clusters.
kubectl-tree became one of the more recognizable third-party kubectl plugins because object ownership is a common Kubernetes troubleshooting question and the tree view is easy to understand in terminal output.
The repository metadata observed on 2026-07-01 showed more than 3000 GitHub stars. Its package-manager presence in Homebrew, Nix, and zypper complements Krew installation and makes it available in repeatable workstation environments.
Users install it as a kubectl plugin and run commands such as `kubectl tree` with namespace, selector, API group, and resource filters. The README warns that filtering out intermediate owner resources can stop traversal and hide descendants, which is a useful operational detail for large clusters.
The package is commonly useful when answering why an object exists, what controller owns it, or how custom resources fan out into lower-level Kubernetes objects.
kubectl-tree is package-nerd notable because it turns a native Kubernetes metadata field into a Unix-friendly visualization. It is small, script-adjacent, installable as a kubectl plugin, and expressive enough to become part of many operators' ad hoc debugging toolbox.
security posture
infrastructure mutation or orchestration signal.
orange risk · medium confidence · infrastructure
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
local files
These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.
Config paths the tool may read or write during local use.
~/.kube/configexecutables
| Command | Kind | Exposure | Note |
|---|---|---|---|
kubectl-tree | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://github.com/ahmetb/kubectl-tree
install metadata
| Package key | brew:kubectl-tree |
|---|---|
| Version | 0.6.0 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/kubectl-tree |
| Homepage | https://github.com/ahmetb/kubectl-tree |
| Repository | https://github.com/ahmetb/kubectl-tree |
| Upstream docs | https://github.com/ahmetb/kubectl-tree#readme |
| License | Apache-2.0 |
| Source archive | https://github.com/ahmetb/kubectl-tree/archive/refs/tags/v0.6.0.tar.gz |
| Dependencies | kubernetes-cli |
| Build dependencies | go |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | kubectl-tree |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
kubectl-tree
nix profile install nixpkgs#kubectl-treekubectl-tree 0.6.0-1.2
Kubectl plugin to browse Kubernetes object hierarchies as a tree
https://github.com/ahmetb/kubectl-tree
sudo zypper install kubectl-treesource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.