Skip to content
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

kuberlr does not support Windows system proxy #843

Open
dirk-olmes opened this issue Oct 21, 2021 · 2 comments
Open

kuberlr does not support Windows system proxy #843

dirk-olmes opened this issue Oct 21, 2021 · 2 comments
Labels

Comments

@dirk-olmes
Copy link

When I'm launching Rancher Desktop it performs some of the steps like the WSL integration etc. but ultimately fails with the error message "kubectl.exe exited with code 255".

In the k8s.log I get the output

Updating release version cache
Ensuring images available for K3s v1.21.5+k3s2
Fetching releases from https://api.github.com/repos/k3s-io/k3s/releases?per_page=100 -> OK
Found old version v1.22.2+k3s2, stopping.
Got 67 versions.
Cache at C:\Users\olmes\AppData\Local\rancher-desktop\cache\k3s is valid.
Waiting for K3s server to be ready on port 6443...
The K3s server is ready on 172.20.102.189:6443.
Updating kubeconfig H:\.kube\config...
Setting default context...
I1021 08:11:26.501228    7428 versioner.go:58] invalid configuration: no configuration has been provided
I1021 08:11:26.597221    7428 versioner.go:64] No local kubectl binary found, fetching latest stable release version
F1021 08:11:56.628190    7428 main.go:62] Get https://storage.googleapis.com/kubernetes-release/release/stable.txt: dial tcp 172.217.16.144:443: i/o timeout

The kubectl.exe that resides in C:\Users\xxx\AppData\Local\Programs\Rancher Desktop\resources\resources\win32\bin seems to be just a wrapper that attempts to download the correct kubectl.exe. Hosts in our environment cannot connect to the internet directly but have to go through a HTTP proxy. It looks like the kubectl.exe does not honor the system's proxy settings since it cannot download the stable.txt.

I have verified that the URL does indeed work using a web browser.

  • OS: Windows 10 21H1 Build 19043.928
  • Rancher Desktop version 0.6
  • Kubernetes version 1.21.5
@dirk-olmes
Copy link
Author

OK setting the http_proxy environment variable helped. No idea why it did not work in my attempts before creating this issue.

Going forward it would have been nice if the installer already warned about such issues so that other users don't have to bump their heads against this kind of issues.

@mook-as mook-as added kind/bug Something isn't working platform/windows labels Oct 21, 2021
@mook-as mook-as changed the title kubectl error 255 starting on windows (proxy issue?) kuberlr does not support Windows system proxy Oct 21, 2021
@mook-as
Copy link
Contributor

mook-as commented Oct 21, 2021

Hi! Thanks for all the details and troubleshooting — I've renamed the issue summary based on my understanding.

We are using kuberlr as the stub to download the appropriate version; I've filed it as flavio/kuberlr#15. I'm still leaving this issue open though, to better handle tracking on our end (e.g. if we decide to schedule time to work on it).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants