ksniff | Kubectl plugin to ease | Command Line Interface library

 by   eldadru Go Version: v1.6.2 License: Apache-2.0

kandi X-RAY | ksniff Summary

kandi X-RAY | ksniff Summary

ksniff is a Go library typically used in Utilities, Command Line Interface applications. ksniff has no bugs, it has no vulnerabilities, it has a Permissive License and it has medium support. You can download it from GitHub.

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

            kandi-support Support

              ksniff has a medium active ecosystem.
              It has 2747 star(s) with 167 fork(s). There are 29 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 36 open issues and 67 have been closed. On average issues are closed in 103 days. There are 10 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of ksniff is v1.6.2

            kandi-Quality Quality

              ksniff has 0 bugs and 0 code smells.

            kandi-Security Security

              ksniff has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              ksniff code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              ksniff is licensed under the Apache-2.0 License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              ksniff releases are available to install and integrate.
              Installation instructions, examples and code snippets are available.
              It has 1351 lines of code, 82 functions and 19 files.
              It has medium code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of ksniff
            Get all kandi verified functions for this library.

            ksniff Key Features

            No Key Features are available at this moment for ksniff.

            ksniff Examples and Code Snippets

            No Code Snippets are available at this moment for ksniff.

            Community Discussions

            QUESTION

            How do I sniff traffic from the localhost to my k8s cluster (running locally)?
            Asked 2021-Mar-14 at 09:39

            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:39

            I 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:

            Source https://stackoverflow.com/questions/66606730

            QUESTION

            unknown field "capabilities" in io.k8s.api.core.v1.PodSecurityContext (running tshark in a container/k8s pod)
            Asked 2020-Apr-23 at 09:00

            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:00

            Looking 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::

            Source https://stackoverflow.com/questions/61374443

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install ksniff

            Installation via krew (https://github.com/GoogleContainerTools/krew).
            To compile a static tcpdump binary:.
            libpcap-dev: for tcpdump compilation (Ubuntu: sudo apt-get install libpcap-dev)
            go 1.11 or newer

            Support

            More than welcome! please don't hesitate to open bugs, questions, pull requests.
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries