# ahmetb/kubectl-tree

kubectl plugin to browse Kubernetes object hierarchies as a tree 🎄 (star the repo if you are using)

Repository: https://github.com/ahmetb/kubectl-tree
Canonical: https://ross.abutalabs.com/products/kubectl-tree
Language: Go
License: Apache-2.0
License Family: permissive
Topics: kubectl-plugin, kubectl-plugins, kubectl
Last push: 2026-08-24T01:23:56+00:00

## Health v2 (maintenance only)
Score: 91/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 76, longevity 100
- inputs: {"age_days": 2445, "days_push": 10, "days_rel": 162, "gap_med": 2.0, "n_releases_24m": 5}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3419, forks 136 (observed 2026-08-28T04:08:03.790790+00:00)

## What it is
A kubectl plugin that visualizes ownership relationships between Kubernetes objects as a tree, based on ownerReferences. It is installed via krew and helps explore how resources like Deployments, ReplicaSets, and Pods relate hierarchically.

## Use cases
- visualize kubernetes object hierarchy as a tree
- find which pods belong to a deployment
- debug ownership relationships between kubernetes resources
- explore knative service child resources
- filter kubernetes api resources when traversing object trees
- inspect ownerReferences relationships in a cluster

## When to choose
- you need to see parent-child ownership chains of Kubernetes objects
- you want a quick krew-installable kubectl plugin with no extra setup
- you work with controllers like Knative or Agones that create nested resources
- you need to scope traversal with label selectors or resource filters in large clusters

## When to avoid
- you need logical relationships beyond ownerReferences (consider kubectl lineage)
- you need a GUI dashboard for cluster visualization
- you are not using kubectl or Kubernetes

## Facets
- artifact type: cli-tool
- maturity: active
- function: cli, developer-tools, monitoring
- domain: developer-tools
- platform: cli, cross-platform, go
- tags: kubectl-plugin, kubernetes, krew, object-hierarchy, owner-references, tree-visualization, containers, devops, command-line

## Member repositories
- ahmetb/kubectl-tree (main) score 91

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:03.790790+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:38:10.182578+00:00, confidence not recorded.
  - readme: https://github.com/ahmetb/kubectl-tree (fetched 2026-08-28T04:08:03.790790+00:00, sha d7aae39bf7b9)
- Data as of 2026-08-30T08:39:29.467469+00:00.
