MCPcopy
hub / github.com/kubeshark/kubeshark

github.com/kubeshark/kubeshark @v72.3.83 sqlite

repository ↗ · DeepWiki ↗ · release v72.3.83 ↗
229 symbols 738 edges 55 files 23 documented · 10%
README

Kubeshark: Traffic analyzer for Kubernetes.

<a href="https://github.com/kubeshark/kubeshark/releases/latest">
    <img alt="GitHub Latest Release" src="https://img.shields.io/github/v/release/kubeshark/kubeshark?logo=GitHub&style=flat-square">
</a>
<a href="https://hub.docker.com/r/kubeshark/worker">
  <img alt="Docker pulls" src="https://img.shields.io/docker/pulls/kubeshark/worker?color=%23099cec&logo=Docker&style=flat-square">
</a>
<a href="https://hub.docker.com/r/kubeshark/worker">
  <img alt="Image size" src="https://img.shields.io/docker/image-size/kubeshark/kubeshark/latest?logo=Docker&style=flat-square">
</a>
    <a href="https://discord.gg/WkvRGMUcx7">
  <img alt="Discord" src="https://img.shields.io/discord/1042559155224973352?logo=Discord&style=flat-square&label=discord">
</a>
<a href="https://join.slack.com/t/kubeshark/shared_invite/zt-1m90td3n7-VHxN_~V5kVp80SfQW3SfpA">
  <img alt="Slack" src="https://img.shields.io/badge/slack-join_chat-green?logo=Slack&style=flat-square&label=slack">
</a>

Want to see Kubeshark in action, right now? Visit this live demo deployment of Kubeshark.

Kubeshark is an API Traffic Analyzer for Kubernetes providing real-time, protocol-level visibility into Kubernetes’ internal network, capturing and monitoring all traffic and payloads going in, out and across containers, pods, nodes and clusters.

Simple UI

Think TCPDump and Wireshark re-invented for Kubernetes

Getting Started

Download Kubeshark's binary distribution latest release and run following one of these examples:

kubeshark tap
kubeshark tap -n sock-shop "(catalo*|front-end*)"

Running any of the :point_up: above commands will open the Web UI in your browser which streams the traffic in your Kubernetes cluster in real-time.

Homebrew

Homebrew :beer: users install Kubeshark CLI with:

brew install kubeshark

Helm

Add the helm repository and install the chart:

helm repo add kubeshark https://helm.kubeshark.co
‍helm install kubeshark kubeshark/kubeshark

Building From Source

Clone this repository and run make command to build it. After the build is complete, the executable can be found at ./bin/kubeshark__.

Documentation

To learn more, read the documentation.

Contributing

We :heart: pull requests! See CONTRIBUTING.md for the contribution guide.

Code of Conduct

This project is for everyone. We ask that our users and contributors take a few minutes to review our Code of Conduct.

Extension points exported contracts — how you extend this code

EventFilterer (Interface)
(no doc) [2 implementers]
kubernetes/watch.go
WatchCreator (Interface)
(no doc) [2 implementers]
kubernetes/watch.go

Core symbols most depended-on inside this repo

Error
called by 101
kubernetes/errors.go
SetConfig
called by 13
kubernetes/config.go
FormatError
called by 7
errormessage/errormessage.go
getKubernetesProviderForCli
called by 7
cmd/common.go
mergeSetFlag
called by 7
config/config.go
OpenBrowser
called by 6
utils/browser.go
Contains
called by 5
utils/slice.go
GetProxyOnPort
called by 5
kubernetes/proxy.go

Shape

Function 123
Struct 51
Method 50
TypeAlias 3
Interface 2

Languages

Go100%

Modules by API surface

config/configStructs/tapConfig.go29 symbols
kubernetes/provider.go17 symbols
config/config.go12 symbols
cmd/tapRunner.go12 symbols
config/config_internal_test.go11 symbols
kubernetes/proxy.go8 symbols
internal/connect/hub.go8 symbols
cmd/pcapDumpRunner.go8 symbols
semver/semver.go7 symbols
debounce/debounce.go7 symbols
config/configStruct.go7 symbols
kubernetes/watchEvent.go6 symbols

Dependencies from manifests, versioned

github.com/AdaLogics/go-fuzz-headersv0.0.0-2023010623484 · 1×
github.com/Azure/go-ansitermv0.0.0-2021061722524 · 1×
github.com/MakeNowJust/heredocv1.0.0 · 1×
github.com/Masterminds/goutilsv1.1.1 · 1×
github.com/Masterminds/semver/v3v3.2.0 · 1×
github.com/asaskevich/govalidatorv0.0.0-2020042814374 · 1×
github.com/beorn7/perksv1.0.1 · 1×
github.com/cespare/xxhash/v2v2.2.0 · 1×
github.com/chai2010/gettext-gov1.0.2 · 1×

For agents

$ claude mcp add kubeshark \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact