-
Notifications
You must be signed in to change notification settings - Fork 42
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
Klipper fails when k3s runs inside LXC container #10
Comments
Oh thanks, I just wanted to report the same. I've set up k3s yesterday and I'm seeing those errors when I try to launch a service using a Loadbalancer. As quick fix, I've changed the container to privileged in the DeamonSet config:
I'm also not sure whether the ip_forward config is already set to edit: Ooops, I did the regular setup, not within LXC. But I'm having the same issue running on Debian 10. |
This issue is probably similar like k3s-io/k3s#201 |
It looks similar. But my report is about fixing order in starting script. Instead of trying to always set ip forwarding, pod should first check, if ip forwarding is already enabled, and in such case just continue. It will allow pod to start in environment, where setting ip forwarding is read only |
👍 Initially I also thought I'm running into the same thing. But it looks really easy to fix. I'm sure they'd accept a pr 😉 |
Ah, there's already a fallback to verify that it doesn't fail with the This ensures that the write is optional:
And it then only exits if the value is wrong: https://github.com/k3s-io/klipper-lb/blob/master/entry#L8-L10 Maybe some better logs would be nice. |
I'm not bash expert - sorry for bad suspicion - so this startup script looks ok. |
I suggest to use istio with hostPort bindings: k3s-io/k3s#1652 (comment) either as DaemonSet or Deployment. |
I've resolved this issue by permanently enabling forwarding on host with: |
Hi
I'm running k3s inside LXC container. It starts ok, the only missing bit is pod named svclb-traefik-xxx. I see it's from image rancher/klipper-lb:v0.1.2. It doesn't start, showing error in logs:
Looking at command output from inside container
shows, that forwarding is already enabled.
Looking at the source
klipper-lb/entry
Lines 6 to 10 in 824f44a
I think that this check doesn't only check, but try to set forwarding even, if it's already enabled.
I think solution to my problem would be to first check if forwarding is already enabled, and then set forwarding only, if it's not enabled (not always, like above)
Edit: I've just found similar issue:
#4
The text was updated successfully, but these errors were encountered: