networkop / k8s-topo

Topology builder for network simulations inside K8S
BSD 3-Clause "New" or "Revised" License
72 stars 18 forks source link

Generating graph on local machine (without hosting it in k8s-topo pod) #5

Open tahir24434 opened 4 years ago

tahir24434 commented 4 years ago

Is there any way to generate and access graph locally without hosting it in pod? Here is what I am trying to do $> ./examples/builder/builder 100 0 --prefix vmx $> ./bin/k8s-topo --graph examples/builder/random.yml

Above command generates graph.json file in we directory. I was under assumption that if I open directly the index.html file, it should show me the graph on my local browser. However, it is not the case. It shows me an empty page.

Is there any thing which we can do to show the graph on local browser?

networkop commented 4 years ago

I'm assuming you've done the k8s-topo --create before the graph, right? otherwise it should fail. can you share your graph.json from the web directory?

tahir24434 commented 4 years ago

I'll try it again and will respond to it.