kubegraph provides an easy way to visualize in your terminal, the relationship between k8s objects in a tree or dot graph.
graph.png
- Pod
- Service
- Ingress
- Replicaset
- Deployment
- Daemonset
- Statefulset
./kubegraph [OBJECT KIND] [OBJECT NAME]
Examples:
- Print a tree graph of the pod
my-pod
and its related Kubernetes objects../kubegraph pod my-pod
- Print a dot graph of the service
my-service
and its related Kubernetes objects../kubegraph service my-service --dot
- Create an PNG Image using the output of a printed dot graph.
./kubegraph service my-service --dot | dot -Tpng > my-graph.png
Download the latest binary from releases
Available OS/Arch
- linux/amd64
- darwin/amd64
- windows/amd64