3.10.6. Configuring a cluster with dual-stack networking
You can create a dual-stack cluster on RHOSP. However, the dual-stack configuration is enabled only if you are using an RHOSP network with IPv4 and IPv6 subnets.
RHOSP does not support the conversion of an IPv4 single-stack cluster to a dual-stack cluster network.
3.10.6.1. Deploying the dual-stack cluster 링크 복사링크가 클립보드에 복사되었습니다!
For dual-stack networking in OpenShift Container Platform clusters, you can configure IPv4 and IPv6 address endpoints for cluster nodes.
Prerequisites
- You enabled Dynamic Host Configuration Protocol (DHCP) on the subnets.
Procedure
Create a network with IPv4 and IPv6 subnets. The available address modes for the
ipv6-ra-modeandipv6-address-modefields are:dhcpv6-stateful,dhcpv6-stateless, andslaac.참고The dual-stack network MTU must accommodate both the minimum MTU for IPv6, which is
1280, and the OVN-Kubernetes encapsulation overhead, which is100.- Create the API and Ingress VIPs ports.
- Add the IPv6 subnet to the router to enable router advertisements. If you are using a provider network, you can enable router advertisements by adding the network as an external gateway, which also enables external connectivity.
Choose one of the following
install-config.yamlconfigurations:For an IPv4/IPv6 dual-stack cluster where you set IPv4 as the primary endpoint for your cluster nodes, edit the
install-config.yamlfile in a similar way to the following example:apiVersion: v1 baseDomain: mydomain.test compute: - name: worker platform: openstack: type: m1.xlarge replicas: 3 controlPlane: name: master platform: openstack: type: m1.xlarge replicas: 3 metadata: name: mycluster networking: machineNetwork:1 - cidr: "192.168.25.0/24" - cidr: "fd2e:6f44:5dd8:c956::/64" clusterNetwork:2 - cidr: 10.128.0.0/14 hostPrefix: 23 - cidr: fd01::/48 hostPrefix: 64 serviceNetwork:3 - 172.30.0.0/16 - fd02::/112 platform: openstack: ingressVIPs: ['192.168.25.79', 'fd2e:6f44:5dd8:c956:f816:3eff:fef1:1bad']4 apiVIPs: ['192.168.25.199', 'fd2e:6f44:5dd8:c956:f816:3eff:fe78:cf36']5 controlPlanePort:6 fixedIPs:7 - subnet:8 name: subnet-v4 id: subnet-v4-id - subnet:9 name: subnet-v6 id: subnet-v6-id network:10 name: dualstack id: network-id- 1 2 3
- You must specify an IP address range for both the IPv4 and IPv6 address families.
- 4
- Specify the virtual IP (VIP) address endpoints for the Ingress VIP services to provide an interface to the cluster.
- 5
- Specify the virtual IP (VIP) address endpoints for the API VIP services to provide an interface to the cluster.
- 6
- Specify the dual-stack network details that all of the nodes across the cluster use for their networking needs.
- 7
- The Classless Inter-Domain Routing (CIDR) of any subnet specified in this field must match the CIDRs listed on
networks.machineNetwork. - 8 9
- You can specify a value for either
nameorid, or both. - 10
- Specifying the
networkunder theControlPlanePortfield is optional.
For an IPv6/IPv4 dual-stack cluster where you set IPv6 as the primary endpoint for your cluster nodes, edit the
install-config.yamlfile in a similar way to the following example:apiVersion: v1 baseDomain: mydomain.test compute: - name: worker platform: openstack: type: m1.xlarge replicas: 3 controlPlane: name: master platform: openstack: type: m1.xlarge replicas: 3 metadata: name: mycluster networking: machineNetwork:1 - cidr: "fd2e:6f44:5dd8:c956::/64" - cidr: "192.168.25.0/24" clusterNetwork:2 - cidr: fd01::/48 hostPrefix: 64 - cidr: 10.128.0.0/14 hostPrefix: 23 serviceNetwork:3 - fd02::/112 - 172.30.0.0/16 platform: openstack: ingressVIPs: ['fd2e:6f44:5dd8:c956:f816:3eff:fef1:1bad', '192.168.25.79']4 apiVIPs: ['fd2e:6f44:5dd8:c956:f816:3eff:fe78:cf36', '192.168.25.199']5 controlPlanePort:6 fixedIPs:7 - subnet:8 name: subnet-v6 id: subnet-v6-id - subnet:9 name: subnet-v4 id: subnet-v4-id network:10 name: dualstack id: network-id- 1 2 3
- You must specify an IP address range for both the IPv4 and IPv6 address families.
- 4
- Specify the virtual IP (VIP) address endpoints for the Ingress VIP services to provide an interface to the cluster.
- 5
- Specify the virtual IP (VIP) address endpoints for the API VIP services to provide an interface to the cluster.
- 6
- Specify the dual-stack network details that all the nodes across the cluster use for their networking needs.
- 7
- The CIDR of any subnet specified in this field must match the CIDRs listed on
networks.machineNetwork. - 8 9
- You can specify a value for either
nameorid, or both. - 10
- Specifying the
networkunder theControlPlanePortfield is optional.
Optional: When you use an installation host in an isolated dual-stack network, the IPv6 address might not be reassigned correctly upon reboot. To resolve this problem on Red Hat Enterprise Linux (RHEL) 8, complete the following steps:
Create a file called
/etc/NetworkManager/system-connections/required-rhel8-ipv6.confthat includes the following configuration:[connection] type=ethernet [ipv6] addr-gen-mode=eui64 method=auto- Reboot the installation host.
Optional: When you use an installation host in an isolated dual-stack network, the IPv6 address might not be reassigned correctly upon reboot. To resolve this problem on Red Hat Enterprise Linux (RHEL) 9, complete the following steps:
Create a file called
/etc/NetworkManager/conf.d/required-rhel9-ipv6.confthat includes the following configuration:[connection] ipv6.addr-gen-mode=0- Reboot the installation host.
The ip=dhcp,dhcp6 kernel argument, which is set on all of the nodes, results in a single Network Manager connection profile that is activated on multiple interfaces simultaneously. Because of this behavior, any additional network has the same connection enforced with an identical UUID. If you need an interface-specific configuration, create a new connection profile for that interface so that the default connection is no longer enforced on it.