github.com/projectcontour/contour@v1.28.2/site/content/docs/v1.15.1/troubleshooting/contour-graph.md (about) 1 # Visualizing Contour's Internal Object Graph 2 3 Contour models its configuration using a directed acyclic graph (DAG) of internal objects. 4 This can be visualized through a debug endpoint that outputs the DAG in [DOT][2] format. 5 To visualize the graph, you must have [`graphviz`][3] installed on your system. 6 7 To download the graph and save it as a PNG: 8 9 ```bash 10 # Port forward into the contour pod 11 $ CONTOUR_POD=$(kubectl -n projectcontour get pod -l app=contour -o name | head -1) 12 # Do the port forward to that pod 13 $ kubectl -n projectcontour port-forward $CONTOUR_POD 6060 14 # Download and store the DAG in png format 15 $ curl localhost:6060/debug/dag | dot -T png > contour-dag.png 16 ``` 17 18 The following is an example of a DAG that maps `http://kuard.local:80/` to the 19 `kuard` service in the `default` namespace: 20 21 ![Sample DAG][4] 22 23 [2]: https://en.wikipedia.org/wiki/DOT 24 [3]: https://graphviz.gitlab.io/ 25 [4]: /img/kuard-dag.png