ksniff | Kubectl plugin to ease | Command Line Interface library
kandi X-RAY | ksniff Summary
kandi X-RAY | ksniff Summary
A kubectl plugin that utilize tcpdump and Wireshark to start a remote capture on any pod in your Kubernetes cluster. You get the full power of Wireshark with minimal impact on your running pods.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of ksniff
ksniff Key Features
ksniff Examples and Code Snippets
Community Discussions
Trending Discussions on ksniff
QUESTION
I have a minikube cluster running locally and a pod, cluster ip 172.17.0.8
.
I am using ksniff to sniff traffic on that pod.
In the pod when I ping www.google.com
. I can see, in the wireshark capture, ICMP request going to/from:
pod (172.17.0.8) <--> google server (some IP)
I know there is an intermediate step. Where my macbook (the cluster host) is making the request on behalf of the pod and receiving the response to send to the correct pod.
pod (172.17.0.8) <--> cluster host (macbook) <--> google server (some IP)
How can I capture the traffic between the pod and the cluster host (eg. macbook)?
...ANSWER
Answered 2021-Mar-14 at 09:39I haven't used minikube nor a macbook so your mileage may vary, but let's try figuring this out.
From what I've seen, pods are typically provided with a default gateway by the host. In other words, the host serves as a router for the pods it hosts. How do we know that? When running an Ubuntu image on a K8s cluster (and installing iproute2), I get the following routing table:
QUESTION
I have build a docker image containing tshark
(its an image I am going to use for doing various manual debugging from a kubernetes pod).
I have deployed a container in kubernetes running that image. But when I access the container and try to run tshark
I get:
ANSWER
Answered 2020-Apr-23 at 09:00Looking specifically to the error, you posted only part of your manifest and looking to this we can see that you put securityContext:
in the same level as containers:
:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install ksniff
To compile a static tcpdump binary:.
libpcap-dev: for tcpdump compilation (Ubuntu: sudo apt-get install libpcap-dev)
go 1.11 or newer
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page