crc icon indicating copy to clipboard operation
crc copied to clipboard

[QUESTION] Can access to crc windows host from another client in local network?

Open miguelcabanes opened this issue 2 years ago • 6 comments

Hi guys. I will expose my case:

  • Installed crc on my windows local machine. (192.168.1.135)
  • Docker in the same windows system with a jenkins stack (sharing same ip from host - 192.168.1.135, port 8080)
  • Ubuntu server (with oc client) with network address (192.168.1.142) and api.crc.testing added to /etc/hosts as 192.168.1.135

What I want to do? I want to do oc login -u developer https://api.crc.testing:6443 from Ubuntu server.

What I achieved so far? I can do oc login -u developer https://api.crc.testing:6443 from windows machine (obviously), and from inside jenkins container. I can reach jenkins docker container from Ubuntu server (curl -v http://192.168.1.135:8080).

But if i try to do oc loging from inside Ubuntu server it says 192.168.1.135 connection refused.

What I´m missing?

Thanks

miguelcabanes avatar Jul 03 '22 10:07 miguelcabanes

This scenario is only described for Linux. This is dependent on a lot of things, eg firewall, network devices, etc. Please check your network settings, port forwarding (did you?), etc.

gbraad avatar Jul 04 '22 05:07 gbraad

https://crc.dev/crc/#setting-up-remote-server_gsg This one is for linux you need something similar for windows.

praveenkumar avatar Jul 04 '22 05:07 praveenkumar

Looking for the same solution under this discussion. Looks like so far we have procedure only for Linux based CRC.

devopski avatar Jul 04 '22 10:07 devopski

I have tried to replicate haproxy config for linux with nginx in Windows but I don't think I have the necessary knowledge for it. Thanks

miguelcabanes avatar Jul 09 '22 07:07 miguelcabanes

I did it this way as a workaround:

  • 1st WINDOWS PC > Created Centos7 VM with CRC installation via Vagrant on my Windows PC
  • 2nd WINDOWS PC > Created SSH tunnel from second PC with Windows to the VM with CRC via GitBash

devopski avatar Jul 09 '22 10:07 devopski

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Sep 20 '22 21:09 stale[bot]

This is the workaround I'm currently using https://github.com/crc-org/crc/issues/3316#issuecomment-1227028879

AndreaTosti avatar Jun 09 '23 07:06 AndreaTosti