crc
crc copied to clipboard
[QUESTION] Can access to crc windows host from another client in local network?
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
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.
https://crc.dev/crc/#setting-up-remote-server_gsg This one is for linux you need something similar for windows.
Looking for the same solution under this discussion. Looks like so far we have procedure only for Linux based CRC.
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
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
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.
This is the workaround I'm currently using https://github.com/crc-org/crc/issues/3316#issuecomment-1227028879