mirror of
https://github.com/kubeshark/kubeshark.git
synced 2026-07-07 07:30:12 +00:00
* WIP * Update tap.go, provider.go, and 2 more files... * WIP * WIP * Solved routine hanging forever: Added missing flag when calling mizuagent. * Iterate channel with range. * Panic if har channel is nil or if websocket connection is nil. * StartPassiveTapper returns read only channel. * Solved program exiting immediately: Wait for interrupt signal instead of exiting. * Solve connecting issue - Retry a few times. * Use lib const instead of magic. * Nicer error prints. * Don't coninue piping message if there is an error. * Comment. * Dependency injection. * no message * Fixed comment. * Print tapped addresses when they are updated. * Print errors in cleanup if there are any. Co-authored-by: RamiBerm <rami.berman@up9.com> Co-authored-by: Roee Gadot <roee.gadot@up9.com>
mizu CLI
Usage
./mizu {pod_name_regex}
Optional Flags
| flag | default | purpose |
|---|---|---|
--no-gui |
false |
Don't host the web interface (not applicable at the moment) |
--gui-port |
8899 |
local port that web interface will be forwarded to |
--namespace |
use namespace different than the one found in kubeconfig | |
--kubeconfig |
Path to custom kubeconfig file |
There are some extra flags defined in code that will show up in ./mizu --help, these are non functional stubs for now
Installation
Make sure your go version is at least 1.11
- cd to
mizu/cli - Run
go mod download(may take a moment) - Run
go build mizu.go
Alternatively, you can build+run directly using go run mizu.go {pod_name_regex}
Known issues
- mid-flight port forwarding failures are not detected and no indication will be shown when this occurs