# kubectl-tree を Homebrew, Nix, zypper でインストール

kubectl-tree のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

```sh
sudo av install brew:kubectl-tree
```

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install kubectl-tree
```

  証拠: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#kubectl-tree
```

  証拠: nixpkgs package indexes: pkgs/by-name/ku/kubectl-tree/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- zypper (92%):

```sh
sudo zypper install kubectl-tree
```

  証拠: openSUSE Tumbleweed package metadata: kubectl-tree from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## パッケージ情報

- **パッケージキー:** brew:kubectl-tree
- **パッケージマネージャ:** Homebrew
- **バージョン:** 0.6.0
- **ソース概要:** Kubectl plugin to browse Kubernetes object hierarchies as a tree
- **ホームページ:** <https://github.com/ahmetb/kubectl-tree>
- **リポジトリ:** <https://github.com/ahmetb/kubectl-tree>
- **最終更新:** 2026-07-27T21:58:45+02:00
- **生成日時:** 2026-08-03T19:37:03+00:00

## 実行可能ファイル

- kubectl-tree (エイリアス)

## インストール挙動

- Bottle: 利用不可

## バージョンと鮮度

- ページ生成日: 2026-08-03
- マネージャ版: 0.6.0
## プロジェクトの歴史と使われ方

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.

### タイムライン

- 2019-12-23: GitHub repository created.
- 2025-11-15: Release v0.4.6 published.
- 2026-03-20: Release v0.5.0 published.
- 2026-03-24: Release v0.6.0 published.

### Related projects

- Related projects include kubectl, Krew, Kubernetes ownerReferences, knative-inspect, and kube-lineage. The README contrasts kube-lineage as a similar plugin that can understand some logical relationships even without ownerReferences.

### ソース

- <https://api.github.com/repos/ahmetb/kubectl-tree>
- <https://github.com/ahmetb/kubectl-tree>
- <https://github.com/ahmetb/kubectl-tree#readme>
- <https://github.com/tohjustin/kube-lineage>
- <https://kubernetes.io/docs/concepts/overview/working-with-objects/owners-dependents/>
- <https://kubernetes.io/docs/tasks/extend-kubectl/kubectl-plugins/>


## セキュリティノート

infrastructure mutation or orchestration signal.

- **Geiger リスク:** orange / 中
- infrastructure mutation or orchestration signal


## Configuration and credential file locations

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.


## Configuration files

- Unix: ~/.kube/config
## 他のパッケージマネージャ記録

- Nix - kubectl-tree: normalized package name match | nixpkgs package indexes: pkgs/by-name/ku/kubectl-tree/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- zypper - kubectl-tree - 0.6.0-1.5: normalized package name match | openSUSE Tumbleweed package metadata: kubectl-tree from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Kubectl plugin to browse Kubernetes object hierarchies as a tree | https://github.com/ahmetb/kubectl-tree


## Combined YAML source

View the package source record on GitHub. [combined/kubectl-tree.yml](https://github.com/mxcl/pkgdb/blob/main/combined/kubectl-tree.yml)


## ソース

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
