-
Notifications
You must be signed in to change notification settings - Fork 196
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
netns return empty string so nothing is ever captured #155
Comments
Still searching from my side, I just see that despite I'm installing docker runtime through yum on the AMI, it also installs containerd. SO microk8s seems to use containerd and this is why ksniff uses the containerd config. Mays this be linked with my problem ?
|
I'm really not sure of what container runtime microk8s is using...
According to the link: if the --container-runtime flag is not remote, you use the dockershim socket with Docker Engine
|
I just try to switch microk8s to docker for container-runtime (https://stackoverflow.com/questions/61119975/is-it-possible-to-set-microk8s-to-use-docker-engine-instead-of-containerd ) but it doesn't work, the cluster do not launch any pods and no events Kubelet logs are clearer after checking (sorry) |
For information, kubelet conf is as following
|
With help of ps, I guess there is a mismatch between containerd socket used by microk8s and the one (default containerd) where ksniff is inspecting the containers to get network infos
|
When I use the ctr command from microk8s, I can have kind of inspect but the jq command is not working.
|
Grrr, I don't understand
But...
|
Hello, still searching if you have any ideas. Thi works a bit better (wireshark is lauching and the right network seems to be found) but an another error occur : The whole log is :
|
hey @seb54000 i just want to acknowledge your issue. I haven't dug into yet but I plan to soon. The microk8s bridge for ksniff is pretty complicated so there's a lot to look at, as you have! |
Thanks @bostrt , no hurry here, it is just for testing. When we will figure out how to cope with my microk8s config I will be happy to contribute a README in the repo for this "specific" use case. |
Hi,
I'm really interested into testing ksniff. I just install it on an AWS standard AMI with a local microk8s cluster installed along with docker as container runtime.
I have a simple webserver where I launch ksniff on. But there is never a single packet coming in wireshark (or stdout when I launch just ksniff with -o -). Of course I make in parralel plenty of HTTP request to the simple webserver "bgd"
After issuing a ps command, I can see how the ksniff container command has been run and I thinks this may be the cause of my problem but I don't know how to specify a net (like net=host ? but will it work ?)
Notice the
--with-ns network:
Any help is welcome and I can of course give more details, please ask
The "app" I'm using for this test
(image: quay.io/redhatworkshops/bgd:latest)
and yaml is :The text was updated successfully, but these errors were encountered: