Files
kubeshark/agent
RamiBerm ceb8d714e3 TRA-3420 inform user of tls traffic (#149)
* Update passive_tapper.go and tls_utils.go

* Update go.mod, go.sum, and 18 more files...

* go fmt

* Update http_reader.go, passive_tapper.go, and 3 more files...

* Update status_controller.go and status_provider.go

Co-authored-by: RamiBerm <rami.berman@up9.com>
2021-08-01 14:57:43 +03:00
..

mizu agent

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

  • /fetch - retrieve traffic data
  • /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 --mizu-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.