https://rancher.com/ logo
Title
s

sparse-potato-80319

12/05/2022, 11:29 AM
Try to run Rancher Desktop on my corporate notebook. Installation world but Kubernetes cannot be started. To me it looks like proxy issues. Where can I set proxy settings for Rancher Desktop?
When I understand correctly, Rancher Desktop takes the proxy configuration from the environment variables
HTTP_PROXY
,
HTTPS_PROXY
and
NO_PROXY
. This is all set in my environment. I use
px
proxy (https://github.com/genotrance/px) as proxy and have set the variables
HTTP_PROXY
and
HTTPS_PROXY
to
<http://localhost:3128>
. However, I still get errors in the
k3s.log
:
failing or missing response from https://<some ip>:10250/apis/metrics.k8s.io/v1beta1: Get "https://<some ip>:10250/apis/metrics.k8s.io/v1beta1": proxy error from 127.0.0.1:6443 while dialing <some ip>:10250, code 503: 503 Service Unavailable
But most of all Rancher Desktop get stuck at "Waiting for Kubernetes API". And the log
k8s.log
shows the message:
2022-12-05T14:08:26.136Z: Waiting for K3s server to be ready on port 6443...
w

wide-mechanic-33041

12/05/2022, 2:25 PM
well for the RD VM you don’t want K8s traffic to be forwarded to the proxy. That’s been a sore spot in the product as if you inject a proxy variable it can cause other issues in K8s since cluster traffic may be forwarded and not just calls to a internet registry or update channel call. The Electron side of RD uses your OS proxy settings.
s

sparse-potato-80319

12/05/2022, 2:39 PM
Guess I am stuck with Docker Desktop - this works fine.
w

wide-mechanic-33041

12/05/2022, 2:40 PM
you can poke around https://github.com/rancher-sandbox/rancher-desktop/labels/area%2Fproxy to see what folks have tried. Tradeoffs in every approach.
s

sparse-potato-80319

12/05/2022, 2:45 PM
Too bad. I would prefer Rancher Desktop over Docker Desktop. There must be a way. I mean it works for Docker Desktop with Kubernetes so it should with Rancher Desktop.
w

wide-mechanic-33041

12/05/2022, 2:54 PM
DD uses an internal proxy where the forwarding rules are handled. Just a significant architectural change compared to managing env vars
DD also uses vpnkit as well so the network handling also has some isolation compared to a flat WSL or bridge network
s

sparse-potato-80319

12/05/2022, 3:12 PM
Alright... 😕
Too bad, as many developers/engineers work in corporations with corproate workplaces...
w

wide-mechanic-33041

12/05/2022, 3:27 PM
yup am in the same place. i find minimal issues on macos using the override.yaml, but it’s the WSL that I have not been able to handle consistently.
w

witty-jelly-95845

12/06/2022, 9:53 AM
FYI there's a #rancher-desktop channel
s

sparse-potato-80319

12/06/2022, 12:14 PM
Yes, I saw that but a little to late. This is why I have forwarded it to the #rancher-desktop channel.