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

sniff on RKE2 fails to create the ksniff pod #160

Open
ulfaric opened this issue Jan 24, 2023 · 2 comments
Open

sniff on RKE2 fails to create the ksniff pod #160

ulfaric opened this issue Jan 24, 2023 · 2 comments

Comments

@ulfaric
Copy link

ulfaric commented Jan 24, 2023

I am trying to do a packet inspection for a pod wit ksniff on RKE2 cluster. The Ksniff always fails to create the pod due to:

MountVolume.SetUp failed for volume "container-socket" : hostPath type check failed: /run/containerd/containerd.sock is not a socket file

I tried --socket /run/k3s/containerd/containerd.sock, still does not work.

@ulfaric
Copy link
Author

ulfaric commented Jan 24, 2023

  • chroot /host ctr -a /run/k3s/containerd/containerd.sock task kill -s SIGKILL ksniff-container-JoyJCGGE
    chroot: can't execute 'ctr': No such file or directory

this is the error when using --socket /run/k3s/containerd/containerd.sock

@MHDarkside
Copy link

MHDarkside commented Nov 6, 2023

Hi i have the same issue.
And i find the problem. K3s has his ctr not in a path included directory.

for the troubleshooting i just created a link:
sudo ln -s /var/lib/rancher/rke2/data/v1.25.13-rke2r1-91117bcc8901/bin/ctr /usr/local/bin/ctr

the path depends on the k3s Version you use.
find / -name ctr

hope that helps anybody.

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

2 participants