-
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
WSL2 -> Ubuntu -> K3S cannot pull images after changing network #8162
Comments
WSL or WSL2? |
Updated (WSL2) |
Thanks, we can take a look but FWIW we don't test/support wsl at the moment so there's not a ton of expertise on the team. That said we'll certainly see what we can do! |
Cheers @cwayne18 , I also keep updating my attempts in the topic start |
Solved it by adding the ip + hostname to /etc/hosts on my ubuntu system. Probably a workaround, but it works. Still no clue why this can go wrong after switching networks. |
Hi,
I am using K3s to startup company pod via a VPN and since I have been to the office, where it also worked, pod wont start anymore because they cannot pull the images.
Failed to pull image "location/name:version": rpc error: code = Unknown desc = failed to pull and unpack image "location/name:version": failed to resolve reference "location/name:version": failed to do request: Head "location/name:version": dial tcp: lookup location: no such host
I started a dummy pod and curl to the url and this works....
Environment is as the title describes;
Windows with a VPN running, WSL2 with K3s and docker installed (no docker desktop)
What I have tried so far;
Kubectl versions
Client Version: version.Info{Major:"1", Minor:"23", GitVersion:"v1.23.13", GitCommit:"592eca05be27f7d927d0b25cbb4241d75a9574bf", GitTreeState:"clean", BuildDate:"2022-10-12T10:57:16Z", GoVersion:"go1.17.13", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"27", GitVersion:"v1.27.4+k3s1", GitCommit:"36645e7311e9bdbbf2adb79ecd8bd68556bc86f6", GitTreeState:"clean", BuildDate:"2023-07-28T09:46:04Z", GoVersion:"go1.20.6", Compiler:"gc", Platform:"linux/amd64"}
resolv.conf with interesting WSL text
More attempts that failed:
The text was updated successfully, but these errors were encountered: