Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't run in privileged mode #158

Open
rgaduput opened this issue Dec 8, 2022 · 0 comments
Open

can't run in privileged mode #158

rgaduput opened this issue Dec 8, 2022 · 0 comments

Comments

@rgaduput
Copy link

rgaduput commented Dec 8, 2022

Hi,
I am trying to run sniff in privileged mode, its just fails right after starting the privileged container.
It completes so fast that it does not even give a chance to check what's happening in the privileged pod (-v is also not helpful)
Any suggestion on how to debug this ?
Using latest version sniff plugin

kubectl sniff ngnix -n default -p

INFO[0000] no container specified, taking first container we found in pod. 
INFO[0000] selected container: 'ngnix'                  
INFO[0000] sniffing method: privileged pod              
INFO[0000] sniffing on pod: 'ngnix' [namespace: 'default', container: 'ngnix', filter: '', interface: 'any'] 
INFO[0000] creating privileged pod on node: 'node-1' 
INFO[0000] pod: 'ksniff-w4mkm' created successfully in namespace: 'default' 
INFO[0000] waiting for pod successful startup           
INFO[0003] pod: 'ksniff-w4mkm' created successfully on node: 'node-1' 
INFO[0003] spawning wireshark!                          
INFO[0003] starting remote sniffing using privileged pod 
INFO[0003] executing command: '[docker --host unix:///var/run/docker.sock run --rm --name=ksniff-container-hPDDCmXn --net=container:ce30c6e702526a19d748db87f6f29bb05987899bc9de03a98845f28091c6ccf4 maintained/tcpdump -i any -U -w - ]' on container: 'ksniff-privileged', pod: 'ksniff-w4mkm', namespace: 'default' 
INFO[0003] starting sniffer cleanup                     
INFO[0003] removing privileged container: 'ksniff-privileged' 
INFO[0003] executing command: '[docker --host unix:///var/run/docker.sock rm -f ksniff-container-hPDDCmXn]' on container: 'ksniff-privileged', pod: 'ksniff-w4mkm', namespace: 'default' 
INFO[0003] command: '[docker --host unix:///var/run/docker.sock rm -f ksniff-container-hPDDCmXn]' executing successfully exitCode: '0', stdErr :'Error: No such container: ksniff-container-hPDDCmXn'
INFO[0003] privileged container: 'ksniff-privileged' removed successfully 
INFO[0003] removing pod: 'ksniff-w4mkm'                 
INFO[0003] removing privileged pod: 'ksniff-w4mkm'      
INFO[0003] privileged pod: 'ksniff-w4mkm' removed       
INFO[0003] pod: 'ksniff-w4mkm' removed successfully     
INFO[0003] sniffer cleanup completed successfully       
Error: exit status 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant