This guide demonstrates how to configure advanced networking for Hosted Control Plane (HCP) clusters running on KubeVirt infrastructure. It covers the setup of VLAN-isolated networks, bridge interfaces, and MetalLB load balancing to provide networking for guest OpenShift clusters.
This configuration addresses scenarios where you need to:
Isolate hosted clusters using dedicated VLANs for security and network segmentation
Provide external connectivity for hosted cluster workloads through dedicated network interfaces
Enable load balancing with MetalLB for ingress traffic to hosted clusters
Support multiple hosted clusters on the same management cluster with proper network isolation
Integrate with existing enterprise networks that require VLAN tagging and specific IP ranges
This approach is particularly useful in enterprise environments where network isolation, compliance requirements, and integration with existing network infrastructure are critical for running multiple tenant clusters.
apiVersion:nmstate.io/v1kind:NodeNetworkConfigurationPolicymetadata:name:coe-bridge-via-enp79s0f1spec:desiredState:interfaces:-name:enp79s0f1.2003type:vlanstate:upvlan:base-iface:enp79s0f1id:2003ipv4:enabled:falseipv6:enabled:false-bridge:options:stp:enabled:falseport:-name:enp79s0f1.2003description:Linux Brige info COE Network via enp79s0f1.2003ipv4:enabled:truedhcp:trueipv6:enabled:falsename:br-vlan-2003state:uptype:linux-bridge-bridge:options:stp:enabled:falseport:-name:enp79s0f1description:Linux Brige info COE Network via enp79s0f1ipv4:enabled:falsename:coe-bridgestate:uptype:linux-bridgenodeSelector:coe.muc.redhat.com/second-nic:enp79s0f1
apiVersion:nmstate.io/v1kind:NodeNetworkConfigurationPolicymetadata:name:coe-bridge-via-enp80s0f1spec:desiredState:interfaces:-name:enp80s0f1.2003type:vlanstate:upvlan:base-iface:enp80s0f1id:2003ipv4:enabled:falseipv6:enabled:false-bridge:options:stp:enabled:falseport:-name:enp80s0f1.2003description:Linux Brige info COE Network via enp80s0f1.2003ipv4:enabled:truedhcp:trueipv6:enabled:falsename:br-vlan-2003state:uptype:linux-bridge-bridge:options:stp:enabled:falseport:-name:enp80s0f1description:Linux Brige info COE Network via enp80s0f1ipv4:enabled:falsename:coe-bridgestate:uptype:linux-bridgenodeSelector:coe.muc.redhat.com/second-nic:enp80s0f1