Traffic Inspection
How to use mirrord dump to inspect incoming traffic to a Kubernetes resource
The mirrord dump
command lets you inspect incoming traffic to a Kubernetes resource - such as a Deployment, Service, Pod, or StatefulSet - directly in your terminal.
When is this useful?
Debugging incoming traffic: If your service is returning errors and you’re not sure why,
mirrord dump
lets you see exactly what’s hitting the service - so you can determine whether traffic is reaching the service at all, or if it is arriving malformed, to quickly identify the source of errors.Verifying mirroring: If you suspect
mirrord exec
isn’t working, you can runmirrord dump
. If you see traffic appear, mirroring is functioning correctly, so you can rule that part out.Onboarding mirrord in your organization: Inspect real traffic to easily find the right filter for isolating each developer’s requests in shared environments.
Prerequisites
Before you start, make sure you have:
kubectl
configured to access your target cluster.mirrord installed and working.
The details of your target resource (for example, the Deployment name and the port you want to inspect).
Using mirrord dump
mirrord dump
Run a command like:
mirrord dump -t deployment/my-deployment -p 80
mirrord will:
Deploy a mirrord agent (via operator or OSS) in the target Pod’s network namespace.
Listen for incoming traffic on the specified port.
You’ll see the raw output for each connection, request, and payload directly in your terminal:
Listening for traffic... Press Ctrl+C to stop
New connection established: Connection ID 0 from x.x.x.x:port to y.y.y.y:port
Connection ID 0: 93 bytes
Data: GET /health HTTP/1.1
Host: your-service
...
Connection ID 0 closed
Press
Ctrl+C
to stop the dump session.
Last updated
Was this helpful?