diff --git a/README.md b/README.md index 5e1cc4d..9c8134a 100644 --- a/README.md +++ b/README.md @@ -78,7 +78,7 @@ subgraph "cluster-gke-testcluster-pool-3-cc049887-zsmc" { label="node: gke-testc ``` ### Example Visualized -![Example output](https://github.com/chrishiestand/node-k8s-dot-graph/raw/master/test/screenshot.png) +![Example output](https://pointillism.io/trevorgrayson/node-k8s-dot-graph/blob/master/example.dot) ## Contributions diff --git a/example.dot b/example.dot new file mode 100644 index 0000000..d590c65 --- /dev/null +++ b/example.dot @@ -0,0 +1,26 @@ +digraph { +sep=6.2; +ranksep="2.0 equally"; +splines="ortho"; +"svcs:app1" [label="service: app1"][shape=diamond]; +"svcs:auth" [label="service: auth"][shape=diamond]; +"svcs:redis-master" [label="service: redis-master"][shape=diamond]; +"pods:app1-3746604072-3jfn8" [label="app1-3746604072-3jfn8"][shape=oval]; +"pods:auth-1124301931-8h7fp" [label="auth-1124301931-8h7fp"][shape=oval]; +"pods:redis-master-853269215-glqjs" [label="redis-master-853269215-glqjs"][shape=oval]; +"ings:svc" [label="ingress: svc"][shape=invtriangle]; +"internet" [label="internet"][shape=circle];subgraph "cluster-gke-testcluster-pool-3-0aa49f08-p92k" { label="node: gke-testcluster-pool-3-0aa49f08-p92k"; +"pods:auth-1124301931-8h7fp"; +"pods:redis-master-853269215-glqjs"; +} + +subgraph "cluster-gke-testcluster-pool-3-cc049887-zsmc" { label="node: gke-testcluster-pool-3-cc049887-zsmc"; +"pods:app1-3746604072-3jfn8"; +} +"internet" -> "ings:svc"; +"internet" -> "svcs:app1"; +"ings:svc" -> "svcs:auth"; +"svcs:app1" -> "pods:app1-3746604072-3jfn8"; +"svcs:auth" -> "pods:auth-1124301931-8h7fp"; +"svcs:redis-master" -> "pods:redis-master-853269215-glqjs"; +}