Running tcpdump inside a OpenShift 4 pod with SSH access to the nodes
Updated -
-
SSH to the node
-
Start a toolbox container with the
toolbox
command. -
If you want to capture from a pod, you can follow these steps.
For OCP 4.8 and lower:# NAME=<pod-name> # NAMESPACE=<pod-namespace> # INTERFACE_NAME=<pod-interface-where-we-are-capturing> # e.g. "eth0" or "any" # pod_id=$(chroot /...
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.