eldadru / ksniff

Kubectl plugin to ease sniffing on kubernetes pods using tcpdump and wireshark
Apache License 2.0
3.13k stars 186 forks source link

Openshift 4.10 Mac M1 nsenter: can't execute 'tcpdump': No such file or directory #159

Open KIRY4 opened 1 year ago

KIRY4 commented 1 year ago

Hello,

kubectl sniff -p MY-POD -n MY-NS --image MY-PRIV-REPO:MY-PORT/docker --tcpdump-image MY-PRIV-REPO:MY-PORT/corfr/tcpdump

INFO[0005] spawning wireshark! INFO[0005] starting remote sniffing using privileged pod INFO[0005] executing command: '[nsenter -n -t 2800874 -- tcpdump -i any -U -w - ]' on container: 'ksniff-privileged', pod: 'ksniff-dntqt', namespace: 'MY-NS' INFO[0005] command: '[nsenter -n -t 2800874 -- tcpdump -i any -U -w - ]' executing successfully exitCode: '127', stdErr :'nsenter: can't execute 'tcpdump': No such file or directory '

macOS Monterey 12.0.1

Any ideas how to make it work?