8000 GitHub - jthan24/mirrord: mirrord lets you easily mirror traffic from your production environment to your development environment.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

mirrord lets you easily mirror traffic from your production environment to your development environment.

License

Notifications You must be signed in to change notification settings

jthan24/mirrord

 
 

Repository files navigation

mirrord

A Visual Studio Code extension that lets you easily mirror traffic from your Kubernetes cluster to your development environment.

When you start debugging, mirrord will prompt you to select a pod to mirror traffic from. It will then mirror all traffic from that pod to the process you're debugging.

Installation

Get the extension here.

How to use

  • Start debugging your project
  • Click "Start mirrord" on the status bar
  • Choose pod to mirror traffic from
  • To stop mirroring, click "Stop mirrord" (or stop debugging)

Note

mirrord uses your machine's default kubeconfig for access to the Kubernetes API.

How it works

mirrord works by letting you select a pod to mirror traffic from. It launches a privileged pod on the same node which enters the namespace of the selected pod and captures traffic from it.

Currently it captures only port 80, but that will be configurable soon. The extension automatically detects which port your debugged process listens on and directs the mirrored traffic to it. If you prefer to direct traffic to a different local port, edit launch.json:

{ "mirrord": { "port": "<port to send traffic to>" } }

For more technical information, see TECHNICAL.md

Caveats

  • mirrord currently supports Kubernetes clusters using containerd runtime only. Support for more runtimes will be added if there's demand.

Contributing

Contributions are welcome via PRs.


Icon Credit: flaticon.com

About

mirrord lets you easily mirror traffic from your production environment to your development environment.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 100.0%
0