Files
kubeshark/agent
Rami Berman d852a911ef Merge branch 'develop'
Conflicts:
	cli/cmd/common.go
	cli/cmd/tapRunner.go
	cli/config/configStructs/tapConfig.go
	cli/kubernetes/provider.go
	cli/kubernetes/proxy.go
	cli/mizu/consts.go
	shared/kubernetes/provider.go
	shared/kubernetes/proxy.go
	shared/models.go
2021-10-31 15:47:02 +02:00
..
WIP
2021-10-28 16:14:01 +03:00
2021-08-15 14:22:49 +03:00

mizu agent

Agent for MIZU (API server and tapper) Basic APIs:

  • /stats - retrieve statistics of collected data
  • /viewer - web ui

Remote Debugging

Setup remote debugging

  1. Run go get github.com/go-delve/delve/cmd/dlv
  2. Create a "Go Remote" run/debug configuration in Intellij, set to localhost:2345
  3. Build and push a debug image using docker build . -t gcr.io/up9-docker-hub/mizu/debug:latest -f debug.Dockerfile && docker push gcr.io/up9-docker-hub/mizu/debug:latest

Connecting

  1. Start mizu using the cli with the debug image mizu tap --set agent-image=gcr.io/up9-docker-hub/mizu/debug:latest {tapped_pod_name}
  2. Forward the debug port using kubectl port-forward -n default mizu-api-server 2345:2345
  3. Run the run/debug configuration you've created earlier in Intellij.

Do note that dlv won't start the api until a debugger connects to it.