https://rancher.com/ logo
Title
s

stale-judge-78332

03/31/2023, 9:28 AM
I recently read about provisioning scripts for rancher desktop. Very interesting. But poorly documented, especially for the windows platform. So I decided to ask for help in slack. I installed rancher desktop out of the box. Everything fine. Now I wanted to use zerotier to span a private network over my responsive web application deployed on rancher desktops single node kubernetes cluster so that I can open it on my smartphone. My problem is that I need to configure the external ip address of the ingress. How can I do that?
m

magnificent-napkin-96586

03/31/2023, 9:45 PM
Hi Robert. Did you have a question about provisioning along with the ingress setup? As for the ingress setup, to confirm, did you disable Traefik first? We have steps on setting up an NGINX controller in our docs here: https://docs.rancherdesktop.io/how-to-guides/setup-NGINX-Ingress-Controller but I'm curious what's you've tried so far and what errors you're seeing.
s

stale-judge-78332

04/01/2023, 6:54 AM
I love the comfort with rancher desktop having everything on hand with one application. So I would like to keep using traefik. The only thing I want to change is the ip address of the ingress. And I thougt I could use a provisioning script. https://docs.rancherdesktop.io/how-to-guides/provisioning-scripts/ But I have no clue how to achieve that on windows. The documentation gives not so much help in that case.
c

calm-sugar-3169

04/04/2023, 8:23 PM
Hi Robert, we have a settings for that and you can do this via
rdctl
command.
--kubernetes.ingress.localhost-only                bind services to 127.0.0.1 instead of 0.0.0.0
e.g you can do something like
rdctl set --kubernetes.ingress.localhost-only=false
, please note that, the options are either using
127.0.0.1
or
0.0.0.0
which allows you to attach to all the available IP addresses on your system. It doesn’t really allow you to specify an IP address.
s

stale-judge-78332

04/07/2023, 8:07 PM
Thank you Nino for your answer. Could you please tell me how to install rdctl on windows? Do I have to run it in WSL?
w

wide-mechanic-33041

04/10/2023, 11:46 AM
rdctl is in in your windows host