Visualize resource dependencies
Visualize the relationship and dependencies for all your Gloo Gateway and Kubernetes Gateway API resources in a DOT Graph.
About DOT Graphs
A DOT graph is a plain text graph description language that is primarily used with Graphviz. Graphviz is an open source graph visualization software to represent structural information and networks as diagrams, such as flowcharts, dependency trees, and state machines.
The gloo gateway CLI has built-in support for generating DOT graphs to show the dependencies and relationships of Gloo Gateway and Kubernetes Gateway API resources.
Before you begin
Follow the Get started guide to install Gloo Gateway.
Follow the Sample app guide to create a gateway proxy with an HTTP listener and deploy the httpbin sample app.
Get the external address of the gateway and save it in an environment variable.
Visualize your resources
Generate a graph for a particular resource in your cluster. The following command generates a graph for the http Gateway that you created in before you begin.
gloo gateway get gateway http -n gloo-system -o graph > output.graphOpen the Graphviz online playground.
Copy and paste the output of
output.graphinto the Graphviz online playground. The tool automatically generates the DOT graph for you.