Implementing BGP Load Balancing infrastructure with MetalLB for OpenShift Virtualization

4. Developer Resources

Infrastructure Elements Components Version Notes and Configuration Details

Primary OpenShift Virtualization

Red Hat OpenShift

4.19

Enable Global ipForwarding and routingViaHost:

oc patch network.operator cluster --type=merge -p '{"spec":{"defaultNetwork":{"ovnKubernetesConfig":{"gatewayConfig":{"ipForwarding": "Global"}}}}}'
oc patch network.operator cluster --type=merge -p '{"spec":{"defaultNetwork":{"ovnKubernetesConfig":{"gatewayConfig":{"routingViaHost": true}}}}}'

labels assigned to the worker nodes for MetalLB:

oc label node hub-worker01.ocp4-hub.test.com app=metallb-worker
oc label node hub-worker02.ocp4-hub.test.com app=metallb-worker

label assigned to the worker nodes for NMState:

oc label node hub-worker01.ocp4-hub.test.com node-role.kubernetes.io/BGPspeaker=""
oc label node hub-worker02.ocp4-hub.test.com node-role.kubernetes.io/BGPspeaker=""
External IP assignment for noobaa-mgmt/s3 is disabled per RH Solution 6995857.

LocalStorage / OpenShift Data Foundation / OpenShift Virtualization Operators

4.19

Standard operator stack for storage and virtualization.

OADP Operator

1.5.2

OADP Hub configuration

NMState / MetalLB Operators

4.19

NMState configuration
MetalLB configuration

DR OpenShift Virtualization

Red Hat OpenShift

4.19

Enable Global ipForwarding and routingViaHost:

oc patch network.operator cluster --type=merge -p '{"spec":{"defaultNetwork":{"ovnKubernetesConfig":{"gatewayConfig":{"ipForwarding": "Global"}}}}}'
oc patch network.operator cluster --type=merge -p '{"spec":{"defaultNetwork":{"ovnKubernetesConfig":{"gatewayConfig":{"routingViaHost": true}}}}}'

labels assigned to the worker nodes for MetalLB:

oc label node dr-worker01.ocp4-dr.test.com app=metallb-worker
oc label node dr-worker02.ocp4-dr.test.com app=metallb-worker

label assigned to the worker nodes for NMState:

oc label node dr-worker01.ocp4-dr.test.com node-role.kubernetes.io/BGPspeaker=""
oc label node dr-worker02.ocp4-dr.test.com node-role.kubernetes.io/BGPspeaker=""
External IP assignment for noobaa-mgmt/s3 is disabled per RH Solution 6995857.

LocalStorage / OpenShift Data Foundation / OpenShift Virtualization Operators

4.19

Standard operator stack for DR site.

OADP Operator

1.5.2

OADP DR configuration

NMState / MetalLB Operators

4.19

NMState DR configuration
MetalLB DR configuration

Router & Network Services

FRRouting (Hub/Access/DR)

10.4.1

dhcp-server

4.4.2

RHEL 9 package (4.4.2-19.b1.el9.x86_64)

firewalld

1.3.4

RHEL 9 package (1.3.4-9.el9_5.noarch)

External S3 Storage

Red Hat Ceph Storage (Single Node)

N/A

Ceph utilized as S3 backend for OADP.
Reference: Creating a Ceph cluster on a single machine.