-
Notifications
You must be signed in to change notification settings - Fork 243
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Services inaccessible on port 32131 when using userspace networking #4584
Comments
For demonstration, this is the official kubernetes.io service modified to use a LoadBalancer:
I saved this to Then after a minute or so,
and
then
Just on macOS. On Ubuntu, that last command would succeed though notably with a different IP than 127.0.0.1. |
MacOS uses Userspace networking mode, which binds to localhost. Ubuntu does not do this yet, but will with the next release. This is to allow use while connected on a route-all VPN connection for Work-from-home users. At the moment, we only forward application traffic via the web port. Haven't touched this part in a while, so will have to ask @anjannath or @praveenkumar. It is not recommended, but the behavior can be changed:
and change this value. The only ports we expose/rebind are: Lines 77 to 85 in ab8cf0b
Reaching the node IP would in an actual cluster might not be possible. |
Instead of |
This worked, thanks. Is there no way to get LoadBalancer to work as-is in OpenShift Local then? |
OpenShift Local doesn't run any external loadbalancer so it will not work until you deploy manually something like https://docs.openshift.com/container-platform/4.17/hosted_control_planes/hcp-manage/hcp-manage-non-bm.html#hcp-bm-ingress_hcp-manage-non-bm one . Please close the issue if it is resolved for you. |
General information
I've got a deployment + service that works ok on crc+openshift local running on Ubuntu 24.04, but the same setup on macOS results in an inaccessible service. I notice that CRC has modified my /etc/hosts file to point api.crc.testing to 127.0.0.1, which is unlike what it does on Ubuntu, maybe this is related.
Operating System
macOS
Hypervisor
KVM
Did you run
crc setup
beforecrc start
?yes
Running on
Laptop
Steps to reproduce
Install crc, eval crc oc-env, apply a deployment and service.
Try to access the port listed in
oc get services
via any network client, notice there is an error message.CRC version
CRC status
CRC config
Host Operating System
Expected behavior
Services are accessible via the port listed in
oc get services
, as they are on Linux hostsActual behavior
connect to 127.0.0.1 port <port listed in oc get services> failed: Connection refused
CRC Logs
Additional context
No response
The text was updated successfully, but these errors were encountered: