Connecting External Tools
Using mirrord to allow other tools (such as GUI tools) to use cluster networking
Sometimes you need to use local tools like Web Browsers, Postman, or Database Clients, to interact with services that are only accessible from inside your cluster.
Instead of setting up complex port-forwards or VPNs, you can use mirrord to create a lightweight SOCKS5 tunnel. This allows any application that supports SOCKS5 to resolve internal DNS and connect to private cluster services as if it were running inside the cluster itself.
Prerequisites
Install microsocks via your package manager.
For macOS:
brew install microsocksFor Ubuntu/Debian:
apt install microsocks
Setup
Regardless of which tool you are connecting, the first step is to establish the tunnel.
Start the proxy by running one of the following commands in your terminal:
mirrord exec microsocksto run targetless in the default namespacemirrord exec -t deployment/my-deployment microsocksto target a specific deploymentmirrord exec -a my-namespace microsocksto run within a specific namespace
Verify the proxy is working. microsocks listens on
127.0.0.1:1080by default. Try calling a service health endpoint in your kubernetes cluster usingcurl --socks5 socks5h://127.0.0.1:1080 <svc>.<namespace>.svc.cluster.local/health
Tool Guides
Once the proxy is running, choose your tool below to configure the connection:
Web Browsing - Using mirrord to browse using cluster networking.
Postman - Send API requests via postman to kubernetes services.
Last updated
Was this helpful?

