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

Update the EBF tutorial #19886

Open
medyagh opened this issue Oct 30, 2024 · 4 comments
Open

Update the EBF tutorial #19886

medyagh opened this issue Oct 30, 2024 · 4 comments
Labels
help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.

Comments

@medyagh
Copy link
Member

medyagh commented Oct 30, 2024

our ebf tutorial is ancient and has deadlinks:
do we still need to do these extra steps such as using a custom ISO and linux headers?
did we add the ebf to minikube ISO ?

https://github.com/kubernetes/minikube/blob/master/site/content/en/docs/tutorials/ebpf_tools_in_minikube.md?plain=1#L25

@eiffel-fl do you know if our old tutorial ^^ can we remove those lines about cutsom iso ?

https://www.youtube.com/watch?v=L85vx004E-0

@medyagh medyagh added the help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. label Oct 30, 2024
@medyagh
Copy link
Member Author

medyagh commented Oct 30, 2024

@spowelljr pointed out this PR #12707 that might mean we no longer need the custom ISO but do we need to also remove the lines about custom header?

ou will need to download and extract necessary kernel headers within minikube:

```shell
minikube ssh -- curl -Lo /tmp/kernel-headers-linux-4.19.94.tar.lz4 https://storage.googleapis.com/minikube-kernel-headers/kernel-headers-linux-4.19.94.tar.lz4

minikube ssh -- sudo mkdir -p /lib/modules/4.19.94/build

minikube ssh -- sudo tar -I lz4 -C /lib/modules/4.19.94/build -xvf /tmp/kernel-headers-linux-4.19.94.tar.lz4

minikube ssh -- rm /tmp/kernel-headers-linux-4.19.94.tar.lz4

@medyagh
Copy link
Member Author

medyagh commented Oct 30, 2024

I tried to run it on my qemu on macos but seems like we also need to tell ppl this is not supported for arm64

zlim/bcc-docker#7

@nirs
Copy link
Contributor

nirs commented Oct 31, 2024

I tried to run it on my qemu on macos but seems like we also need to tell ppl this is not supported for arm64

zlim/bcc-docker#7

Why not use the vfkit driver? We don't support yet rosetta, but with small change we can add rosetta support to the vfkit.
https://github.com/crc-org/vfkit/blob/main/doc/usage.md#example-11

I'm using rosetta with lima to run clusters mixing arm64 and amd64 images and it works beautifully.

@eiffel-fl
Copy link
Contributor

Hi!

our ebf tutorial is ancient and has deadlinks: do we still need to do these extra steps such as using a custom ISO and linux headers? did we add the ebf to minikube ISO ?

https://github.com/kubernetes/minikube/blob/master/site/content/en/docs/tutorials/ebpf_tools_in_minikube.md?plain=1#L25

@eiffel-fl do you know if our old tutorial ^^ can we remove those lines about cutsom iso ?

https://www.youtube.com/watch?v=L85vx004E-0

The custom ISO was mainly needed for test purpose while I added the CONFIG_BPF to Minikube kernel in #14316.
Since this PR was merged, we do not need to use this flag, so I guess you can remove anything about it in the documentation.

Best regards.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.
Projects
None yet
Development

No branches or pull requests

3 participants