-
Notifications
You must be signed in to change notification settings - Fork 822
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
Missing xt_recent
kernel module resulting in inability to run Kubernetes with Session Affinity
#7124
Comments
I've updated my link in the issue mentioned. I had a PR but MS decided that despite kernel being OSS, they won't accept outside contributions. |
@craigloewen-msft Any news on this? It's been half a year. PRs that addressed this issue were opened over at microsoft/WSL2-Linux-Kernel and closed without a good reason. |
Any news on this? Having to recompile the WSL2 kernel to have a good working environment for k8s is annoying and consumes a good amount of time unless you have a powerful machine. It would be great to include this in the default build. |
MS team - without this fix there's a whole class of WSL2 use-cases (developer local K8s on WSL2) that are invalidated. |
This should be fixed as soon as possible. @craigloewen-msft any news? |
I would also like to get this fixed instead of having to build own version of the kernel. |
Vote! |
this issue has caused me nightmares since the whole cluster wasnt able to communicate anymore just because one container has sessionAffinity: ClientIp set. |
@jiayali-ms you closed both PRs to the kernel trying to implement this fix (microsoft/WSL2-Linux-Kernel#199 and microsoft/WSL2-Linux-Kernel#198). On your closing comment, you said:
We are here, reporting the issue that causes so many k8s environments to be broken in WSL 2 and yet we didn't hear anything back. So, what's up? Is this going to be fixed? Recompiling the WSL 2 kernel only for this reason is an awful solution. |
@therealkenc do you happen to know anything about this issue? |
Oh, men, I am trying to provision an RKE2 worker node using Calico on Win11 WSL2 with a bridged network. And the kube-proxy pod suffers from this no xt_recent iptables failure. I am already using a custom kernel (built using native Ubuntu 22.04 and a modified ms kconfig) with many xt options enabled to support wireguard. I wonder why MS is so hostile to the Linux net stack... All they are trying to do is to limit the role of wsl a client behind NAT... besides, I still have several machines not compatible with win11, and need to figure out how to overcome the hyper-v switch nat mode... |
@alex-guo-github not sure whether it will help you, but for Cilium I had to add |
Don't know if anyone needs this but I created a little helm snippet to detect if the node is docker-desktop running in wsl2 so I could just not set session affinity and/or throw an error if any multiple replicas scenarios were applied on wsl2. {{- $isWSL2 := false }} |
Also voting here for incl |
This issue has been automatically closed since it has not had any activity for the past year. If you're still experiencing this issue please re-file this as a new issue or feature request. Thank you! |
this is still an issue |
For future reference: The following doc article about running Kind on WSL2 explains how to build your kernel to support session affinity: |
Windows Build Number
Microsoft Windows [Version 10.0.19042.1055]
WSL Version
Kernel Version
No response
Distro Version
Ubuntu 20.04
Other Software
Kind, v0.11.1
Kubernetes, v1.20.7
Docker Desktop (Windows), version 3.4.0
Repro Steps
sessionAffinity: ClientIP
(kubectl apply -f service.yaml
).Expected Behavior
Kube Proxy should have successfully applied
iptables
rules and Kubernetes service is accessible.Some discussion about this issue: kubernetes-sigs/kind#1740.
Actual Behavior
Service is inaccessible and any other service created afterwards is inaccessible. Which is caused by inability to apply
iptables
rules.The following log is present in Kube Proxy:
Diagnostic Logs
No response
The text was updated successfully, but these errors were encountered: