Files
kubeshark/cli
nimrod-up9 c59aadb221 Fix crash when there are no pods matching the regex (#85)
* Removed done todo.

* Error when trying to apply tapper-daemonset with 0 pods in affinity.

* Reorder imports.

* Create/update mizu tappers if there are tapped pods. Delete if there are no tapped pods.

* Skip deletion if tapper daemonset is not installed.

* Renamed createMizuTappers -> updateMizuTappers.

* Renamed IsDaemonSetApplied -> CheckDaemonSetExists.

* Skip deletion if pod / service is not installed.

* Fixed: Inverted logic.

* Rename.

* Fixed compilation bugs.

* Warn if no pods are found. Suggest changing the namespace.

* Use consts.

* Removed empty line.
2021-06-27 18:24:14 +03:00
..
2021-05-26 17:25:12 +03:00
2021-06-21 11:19:04 +03:00
.
2021-06-06 17:01:45 +03:00
2021-06-21 16:23:14 +03:00
2021-05-06 18:30:01 +03:00

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

  1. cd to mizu/cli
  2. Run go mod download (may take a moment)
  3. 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