mirror of
https://github.com/kubeshark/kubeshark.git
synced 2026-04-06 10:47:49 +00:00
* Use log in tap package instead of fmt. * Moved api/pkg/tap to root. * Added go.mod and go.sum for tap. * Added replace for shared. * api uses tap module instead of tap package. * Removed dependency of tap in shared by moving env var out of tap. * Fixed compilation bugs. * Fixed: Forgot to export struct field HostMode. * Removed unused flag. * Close har output channel when done. * Moved websocket out of mizu and into passive-tapper. * Send connection details over har output channel. * Fixed compilation errors. * Removed unused info from request response cache. * Renamed connection -> connectionID. * Fixed rename bug. * Export setters and getters for filter ips and ports. * Added tap dependency to Dockerfile. * Uncomment error messages. * Renamed `filterIpAddresses` -> `filterAuthorities`. * Renamed ConnectionID -> ConnectionInfo. * Fixed: Missed one replace.
mizu API server
API server for MIZU Basic APIs:
- /fetch - retrieve traffic data
- /stats - retrieve statistics of collected data
- /viewer - web ui
Remote Debugging
Setup remote debugging
- Run
go get github.com/go-delve/delve/cmd/dlv - Create a "Go Remote" run/debug configuration in Intellij, set to localhost:2345
- 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
- Start mizu using the cli with the debug image
mizu tap --mizu-image gcr.io/up9-docker-hub/mizu/debug:latest {tapped_pod_name} - Forward the debug port using
kubectl port-forward -n default mizu-collector 2345:2345 - 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.