<p>I have k8s cluster with three nodes <strong>(Node A, Node B, Node C)</strong> and deployed simple nginx with <strong>replica 4</strong> and exposed through <strong>k8s service</strong>. </p>

<p>Now All my nginx are up with thier own pod IP as well as service IP.</p>

<p>Now I need all the igress and egress traffic of my nginx pods to monitor. </p>

<p>I am planning to create a another pod with simple tcpdump utility to log the network traffic but how can i redirect all the other pods traffic into the pod where tcpdump is running.</p>

<p>Thanks in advance for suggestions.</p>

Praveenkumar
<p>I would suggest using a service mesh such as <a href="https://linkerd.io/2/features/telemetry/" rel="nofollow noreferrer">Linkerd</a> or <a href="https://istio.io/docs/tasks/observability/metrics/tcp-metrics/" rel="nofollow noreferrer">Istio</a> for monitoring network traffic.</p>

<p>A service mesh deploys a proxy as a sidecar along with your pod and since all network traffic goes through this proxy it can capture metrics and store those metrics in Prometheus and then Grafana can be used as a dashboard.</p>
