-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Load balancer crashing with IPv6 disabled #10455
Comments
This comes from #9963 - which was tested with ipv6 disabled vis sysctl, but apparently not with Are you able to remove that from your kernel command line as a workaround? The sysctl will come back whenever the loadbalancer daemonset is updated. |
Thanks for the suggestion, but I'd like to keep IPv6 completely disabled for security reasons (smaller attack surface). EDIT: |
Thats what we did previously, but it lead to different problems, as discussed in the issue linked from that PR. I'll do some thinking about better ways to address this. It is unfortunate that we can't ask the container runtime to ignore sysctls that don't exist on a particular node. |
I will also note that I have not seen presence of IPv6 on a node as an indicator of additional attack surface; most folks are moving TOWARDS IPv6, not away from it. |
Just a quick note since I just happened upon this issue with a new cluster install, there are some cases where IPv6 is disabled at the kernel level by automation or system administration outside the control of an engineer tasked with installing a K3s cluster with load balancer capabilities; in my case I had to scrap the installation and start again with a downgraded version to achieve the level of resilience/stability we required. |
I also have this issue upgrading our K3s cluster. Basically, I will disable IPV6 at the cluster. But what is weird is that I set the right settings, and by the time your code makes the daemonset load balancer service, it makes IPV6 and IPV4 entries. Even with all the setting below are set it still tries to make a ipv6 entry... in the service load balancer This is the ingress-nginx:
|
Also, I can not control my kernel settings.... well I can but they will reset |
validated on |
Environmental Info:
Node(s) CPU architecture, OS, and Version:
Cluster Configuration:
Single node.
Describe the bug:
With IPv6 disabled,
svclb-traefik
crashes onContainerCreating
with:It is caused by
securityContext
setting:of
rancher/klipper
container.It can be fixed by deleting the mentioned
net.ipv6.conf.all.forwarding
fromsvclb-traefik
daemonset.Steps To Reproduce:
ipv6.disable=1
inGRUB_CMDLINE_LINUX
and the followingsysctl
settings set to1
:Expected behavior:
Load balancer does not crash.
Actual behavior:
Load balancer crashes.
Additional context / logs:
The text was updated successfully, but these errors were encountered: