RedHat-EMEA-SSA-Team / hetzner-ocp4

Installing OCP 4 on single bare metal server.
Apache License 2.0
183 stars 114 forks source link

NodePort not exposing #298

Open 98jan opened 11 months ago

98jan commented 11 months ago

Hi,

I wanted to run my Satisfactory Server in OpenShift/OKD and used the ansible runbook to setup the OpenShift Cluster. My setup is a single node hetzner root server. But when I try to expose a port as "LoadBalancer" the ports do not reach the machine/external IP Also tried to use NodePort, that didn't work. I tried to configure HAProxy to route this routes, but HAProxy doesn't support UDP!

Could anyone help me in this setup to achive that UDP Ports from the OpenShift Cluster can be exposed to the external IP?

rbo commented 11 months ago

Hi,

for Loadbalancing we use HAProxy v1.8 (https://github.com/RedHat-EMEA-SSA-Team/openshift-4-loadbalancer/ - looks like we can update to 2.8 or what evern :-))

I never tried but according to the documentation: https://docs.haproxy.org/1.8/configuration.html looks like HAProxy supports UDP.

According to the architecture

we do not support Kubernetes service type loadbalancer. Even if you install and configure MetalLB or ingress IPs. OpenShift Nodes are running a complete private network which it not available from the internet.

You can create a kubernetes service type nodeport and add a forwaring in the haproxy running on the baremetal node.

Hope that helps Cheers Robert

98jan commented 11 months ago

As far as I understood udp is only for sending syslogs with the UDP protocol. Tried to forward it with HAProxy but couldn't manage it. Anyone here already tried to forward UDP traffic, for me so far not possible.

NodePort is also fine for me, just tried all for me known ways to expose the ports, but still failing, any help would be appreciated here.