kxr / ocp4_setup_upi_kvm

Script to Setup an OpenShift 4 UPI Cluster on KVM. Based on this guide: https://kxr.me/2019/08/17/openshift-4-upi-install-libvirt-kvm/
52 stars 58 forks source link

add the .expose_loadbalancer.sh script #4

Closed jmazzitelli closed 4 years ago

jmazzitelli commented 4 years ago

add a script that will expose the loadbalancer via firewall port forward rules

jmazzitelli commented 4 years ago

@kxr This runs successfully, but I've not been able to access my cluster (on a headless server) via my laptop still. But it most likely is a problem on my end. Take a look and see if this is what you expect to work.

jmazzitelli commented 4 years ago

I can't seem to get this to work. This might not be the correct way to do this (using firewall-cmd). I wonder if we need to use iptables instead? I am using NetworkManager, and I wonder if firewalld is playing nice with NM?

jmazzitelli commented 4 years ago

the script now adds the passthru rules for the $VIR_NET interface.

jmazzitelli commented 4 years ago

@kxr that last commit isn't right - the VIR_NET value is "default" for me - not "virb0". I will assume you know how to figure out how to get "virb0" - i do not see it anywhere in the env file.

kxr commented 4 years ago

@jmazzitelli Don't worry, I will take care of that. Just FYI, its quite easy. We just have to: VIR_INT=$(virsh net-info ${VIR_NET} | grep Bridge | awk '{print $2}') to get the bridge interface of the libvirt network.