<p>I'm using Openshift and Kubernetes as cloud platform for my application. For test purposes I need to intercept incoming http requests to my pods. Is this possible to do that with Kubernetes client library or maybe it can be configured with yaml?</p>

<p>Simple answer is no, you can't.</p>

<p>One of the ways to overcome this is to exec into your container (<code>kubectl exec -it &lt;pod&gt; bash</code>), install tcpdump and run something like <code>tcpdump -i eth0 -n</code>.</p>

<p>A more reasonable way to have it solved on infra level is to use some tracing tool like Jaeger/Zipkin</p>
