Windows pods can not resolve DNS names when running in Windows+WSL mode
I suspect this is something to do with UDP routing across the virtual switch, since WSL and the Calico VXLAN are all running through the same switch. TCP routing seems to work fine as you can curl
to services and pods by their IP address; it's just DNS resolution that's affected.
A theoretical solution here is to run CoreDNS directly on Windows when in Windows+WSL mode, and set --cluster-dns
to point at the Windows IP address (instead of inside the cluster). Though for this to work as a solution, I'd also have to try manually setting the DNS in a Windows pod to 1.1.1.1 first to make sure that DNS works with it being external, and I can't remember if I actually did run that test under Windows+WSL.