Giter VIP home page Giter VIP logo

k8s-tcp-dump-sidecar's Introduction

k8s-tcp-dump-sidecar

Implementation of a Kubernetes Pod with a sidecar container to collect 24-hour rolling TCP Dump traces. Trace files are stored in an Azure Files Volume for easy retrieval. Ideal for constrained environments where terminal access to the node or pod is not possible.

Quickstart

  1. Build the TCP Dump sidecar container using the Dockerfile in the repository
  2. Push the image to your preferred container registry
  3. Update the deployment.yaml file to set image: {{ SERVICE-IMAGE }} to contain the image you want to collect network traces from when it runs
  4. Update the deployment.yaml file to set image: {{ TCPDUMP-IMAGE }} to the TCP Dump sidecar image pushed to your container registry
  5. Deploy the yaml file using kubectl or your CI/CD pipelines.

Notes

  • This is designed to run on Azure Kubernetes Service, but can be adapted to run on any Kubernetes cluster.
  • If the base image in the Dockerfile is changed, ensure the utility installation step is also updated to use the approapriate package manager or installation method.

What is deployed

  • Namespace: tcpdump-sidecar-ns
  • StorageClass: tcp-dump-results (Azure File)
  • PersistentVolumeClaim: tcp-dump-results
  • Deployment
    • service container - the service you want to collect TCP Dumps from
    • tcpdump container - the sidecar collecting the trace and sending to the volume

Further Information

k8s-tcp-dump-sidecar's People

Contributors

gjlumsden avatar

Stargazers

Synk avatar Kunal Babre avatar

Watchers

 avatar  avatar

Forkers

neapan

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.