macOS
brew install kubectl-treelocal Homebrew formula metadata
安装
brew install kubectl-treelocal Homebrew formula metadata
nix profile install nixpkgs#kubectl-treenixpkgs package indexes · pkgs/by-name/ku/kubectl-tree/package.nix · 来源: api.github.com
sudo zypper install kubectl-treeopenSUSE Tumbleweed package metadata · kubectl-tree · 来源: download.opensuse.org
概览
Kubectl plugin to browse Kubernetes object hierarchies as a tree
历史
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.
安全态势
infrastructure mutation or orchestration signal.
orange 风险 · 中 置信度 · infrastructure
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
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/config可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
kubectl-tree | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/ahmetb/kubectl-tree
安装元数据
| 软件包键 | brew:kubectl-tree |
|---|---|
| 版本 | 0.6.0 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/kubectl-tree |
| 主页 | https://github.com/ahmetb/kubectl-tree |
| 仓库 | https://github.com/ahmetb/kubectl-tree |
| 上游文档 | https://github.com/ahmetb/kubectl-tree#readme |
| 许可证 | Apache-2.0 |
| 源码归档 | https://github.com/ahmetb/kubectl-tree/archive/refs/tags/v0.6.0.tar.gz |
| 依赖 | kubernetes-cli |
| 构建依赖 | go |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| 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 |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
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-tree来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.