Trying to run the control plane inside WSL2 and worker nodes under WSL2 on other machines. Because they re inside WSL2, they re going to only find their own IP addresses and think to use those, which will not work because other nodes cannot reach those private WSL2 ip addresses.
I tried setting up port forwarding with netsh interface portproxy...
calls on the control host and configuring the control plane to use the host ip address, but it would still send configuration to the worker nodes to use the private ip. After finding a few config files that still had the WSL2 virtual IP and changing them to point to the host IP, I would then see a lot of errors in syslog: "failed to validate nodeIP: node IP: "192.168.0.100" not found in the host s network interfaces
because inside WSL2, that ip address is unknown.
Is there a way to make this work?
Note, I m looking for a solution in WSL2 where the networking works differently from WSL.