This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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
[HELP] Running Cilium in k3d (bpf-mount) #363
Comments
Hi, thanks for opening this issue 👍 |
@iwilltry42 Thanks for looking into this. The install should work without mounting (for non-production use-case), it will get auto-mounted when cilium pod is started. I am also on a mac, don't know if that could work (I also tried just in case and the error is the same). The cilium install works out of the box with |
I diffed
|
Nice finding! UPDATE: I linked a Google Drive folder with test release files in the PR and will drop it here as well: https://drive.google.com/drive/u/0/folders/1dAvLKlqs5hgXmUnrVs2pn0VzzaMsdKus |
Sorry @iwilltry42, this is not it, might be needed but does not solve the current issue. Started investigating now, might be the issue with the base image (k3s), will share the results. |
@arjantop-cai , damn.. but it was worth a try 🤔 |
Shouldn't it be: Or also |
@blaggacao I don't think its that simple, I am running on a mac, there is no If I run the command it (as expected) does not work, but now already fails during k3d startup, not when installing cilium:
|
Oh, sorry, I overlooked you where working on a Mac. In sone time from now I might be conducting experiments with cillium as well on linux. So I might come back with more insight. |
After doing some quick research, I'm afraid we won't be able to resolve this properly on k3d side. |
Hey, I've been able to fix the k3d issue like this:
Then, it does not fail anymore with the problem of accessing the All the best, |
Hey @iwilltry42 @arjantop-cai @blaggacao , I figured out how you can run Cilium with k3s / k3d on docker for mac. See https://sandstorm.de/de/blog/post/running-cilium-in-k3s-and-k3d-lightweight-kubernetes-on-mac-os-for-development.html for the full explanation :-) Feel free to re-use the content for your documentation or so :-) All the best, |
@skurfuerst So the only reason why it is not working is that image does not have bash installed? Should k3d base image have it installed for compatibility? |
@arjantop-cai IMHO that would help, but AFAIK this is the IMHO it would actually be better to rewrite the Script on the Cilium side to only use /bin/sh. The script is quite simple, and AFAICS no bash features are used there. All the best, |
Hey @skurfuerst great work! Thanks for sharing your insights and the content! |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
What did you do
How was the cluster created?
k3d cluster create test --k3s-server-arg="--flannel-backend=none"
What did you do afterwards?
From here: https://docs.cilium.io/en/v1.8/gettingstarted/kind/
Or from here: https://docs.cilium.io/en/v1.8/gettingstarted/k3s/
Error:
kubectl describe pod -nkube-system cilium-5hq8g
What did you expect to happen
Cilium install should become healthy (it works in k3s: https://docs.cilium.io/en/v1.8/gettingstarted/k3s/)
Which OS & Architecture
Which version of
k3d
Which version of docker
The text was updated successfully, but these errors were encountered: