NSM dashboard backend part provides graphical model data for the UI part through the REST API
Written in Go
The entire NSM dashboard deployment info see here
NSM_PPROF_ENABLED
- is pprof enabled (default: "false")NSM_PPROF_LISTEN_ON
- pprof URL to ListenAndServe (default: "localhost:6060")
git clone [email protected]:networkservicemesh/deployments-k8s.git
cd deployments-k8s/examples/observability/dashboard
- Edit
dashboard-pod.yaml
and remove thedashboard-ui
container kubectl apply -f dashboard-pod.yaml
kubectl apply -f dashboard-backend-service.yaml
kubectl port-forward -n nsm-system service/dashboard-backend 3001:3001
- Check
http://localhost:3001/nodes
in the browser
To run dashboard backend with a custom container (Docker have to be installed) in the cluster:
git clone [email protected]:networkservicemesh/cmd-dashboard-backend.git
cd cmd-dashboard-backend
- Make the necessary code changes
- Create a Dockerhub repository
docker build -t your-dh-namespace/dh-repo-name .
docker push your-dh-namespace/dh-repo-name
cd deployments-k8s/examples/observability/dashboard
- Edit
dashboard-pod.yaml
and set your Dockerhub image address for thedashboard-backend
container - Execute the steps 3-7 from the previous section