https://rancher.com/ logo
#rancher-desktop
Title
# rancher-desktop
f

future-keyboard-11621

10/17/2022, 11:19 AM
I am trying to access rancher-desktop cluster outside that is running on a different computer on my network.
E1017 13:18:31.887786 22909 proxy_server.go:147] Error while proxying request: x509: certificate is valid for 10.43.0.1, 127.0.0.1, 192.168.5.15, ::1, fec0::5055:55ff:fe64:2235, not 10.0.0.5
The error suggests that the certificate is only valid for the given ip-s not for external access, how could I bypass/fix this?
👍 1
a

adventurous-piano-43924

10/17/2022, 2:29 PM
I have the same problem!
c

calm-sugar-3169

10/17/2022, 5:55 PM
@future-keyboard-11621 what platform is this happening on?
also, what is causing that error? is it coming from when you do
kubectl ...
?
f

future-keyboard-11621

10/17/2022, 6:13 PM
This is not really a rancher desktop ISSUE per se, its more about how to configure it proprely I am running rancher-desktop on ubuntu 22.0.4 Trying to access it over the network on my macOS with Lens
I removed the
certificate-authority-data
and added
insecure-skip-tls-verify: true
This makes it work with lens. But its not really the proper solution
c

calm-sugar-3169

10/17/2022, 6:17 PM
I figured it’s related to kubectl configuration by looking at this: https://github.com/kubernetes/kubectl/blob/65805ae28084bd77a0d7b2f10d34fe87e1d45c93/pkg/proxy/proxy_server.go#L147 I was also going to suggest
insecure-skip-tls-verify: true
to see if that suppresses it. It looks like a misconfiguration, I will try to see what is causing this.
f

future-keyboard-11621

10/17/2022, 6:18 PM
I think its working as intended? I am trying to access the cluster on a different IP than the host computer. That is what the error tells me also.
p

proud-jewelry-46860

10/17/2022, 6:23 PM
Yeah, we never really thought about accessing the internal Kubernetes cluster (running k3s) from outside the host machine; you'll probably need to tell the client to ignore the cert issues.
c

calm-sugar-3169

10/17/2022, 8:40 PM
I have created an enhancement request that should address this scenario https://github.com/rancher-sandbox/rancher-desktop/issues/3186
🙌 1
63 Views