WSL: Need to force net.ipv4.ip_forward
#5341
Labels
kind/bug
Something isn't working
platform/windows
triage/need-to-repro
Needs to be reproduced by dev team
Milestone
Actual Behavior
Sometimes
net.ipv4.ip_forward
defaults to0
, causing traefik to fail to start up. It's unclear what circumstances lead to this.Steps to Reproduce
traefik.bat
and notice that the test is stuck on waiting for k8s to startResult
The traefik lb pod goes into CrashLoopBackoff; examining logs indicates that
/proc/sys/net/ipv4/ip_forward
was set to0
(instead of the expected1
)Expected Behavior
Rancher Desktop should do the necessary set up so that the WSL VM is in a state that can run our workloads.
Additional Information
Manually running
sysctl -w net.ipv4.ip_forward=1
(in a different WSL distribution) and then restarting Rancher Desktop appears to fix the issue.Rancher Desktop Version
1.9.1-512-g48956782
Rancher Desktop K8s Version
1.22.7
Which container engine are you using?
containerd (nerdctl)
What operating system are you using?
Windows
Operating System / Build Version
Windows 10 Pro 22H2 (Build 19045.3324)
What CPU architecture are you using?
x64
Linux only: what package format did you use to install Rancher Desktop?
None
Windows User Only
N/A
The text was updated successfully, but these errors were encountered: