Skip to content

A kubectl plugin to visualize Kubernetes resource relationships in a tree-like format.

License

Notifications You must be signed in to change notification settings

danielbooth-cloud/kubectl-tree

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kubectl-tree

A kubectl plugin to visualize Kubernetes resource relationships in a tree-like format.

Overview

kubectl-tree helps you understand the relationships between Kubernetes resources in your cluster. It shows a hierarchical view of:

  • Workloads (Deployments, StatefulSets, DaemonSets)
  • Their child resources (ReplicaSets, Pods)
  • Related resources (Services, ConfigMaps, Secrets, PVCs)
  • Containers within Pods (Containers, InitContainers)

Examples

kubectl tree -n istio-system

alt text

Installation

Prerequisites

  • Access to a Kubernetes cluster
  • kubectl installed
  1. Download latest release from releases
  2. Move the binary to your PATH, e.g. /usr/local/bin/kubectl-tree
  3. Run kubectl tree

Building from source

Requires go 1.21 or higher

go mod init kubectl-tree
go mod tidy
go build -o kubectl-tree main.go

About

A kubectl plugin to visualize Kubernetes resource relationships in a tree-like format.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages