Skip to content

Commit 3e07b1e

Browse files
Merge pull request #63935 from snarayan-redhat/OSDOCS-6911_shiftstack_dualstack
OSDOCS#6911: Dual-stack configuration for OpenStack
2 parents 252c8ff + 22977de commit 3e07b1e

File tree

3 files changed

+112
-0
lines changed

3 files changed

+112
-0
lines changed

installing/installing_openstack/installing-openstack-installer-custom.adoc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,12 @@ After you deploy your cluster, you can attach pods to additional networks. For m
5252
====
5353

5454
include::modules/installation-osp-config-yaml.adoc[leveloffset=+2]
55+
56+
57+
//Dual-stack networking
58+
include::modules/install-osp-dualstack.adoc[leveloffset=+2]
59+
include::modules/install-osp-deploy-dualstack.adoc[leveloffset=+3]
60+
5561
include::modules/installation-osp-external-lb-config.adoc[leveloffset=+2]
5662
// include::modules/installation-osp-setting-worker-affinity.adoc[leveloffset=+1]
5763
include::modules/ssh-agent-using.adoc[leveloffset=+1]
Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * installing/installing_openstack/installing-openstack-installer-custom.adoc
4+
:_content-type: PROCEDURE
5+
[id="install-osp-deploy-dualstack_{context}"]
6+
= Deploying the dual-stack cluster
7+
8+
.Procedure
9+
10+
. Create a network with IPv4 and IPv6 subnets. The available address modes for `ipv6-ra-mode` and `ipv6-address-mode` fields are: `stateful`, `stateless` and `slaac`.
11+
+
12+
[NOTE]
13+
====
14+
The dualstack network MTU must accommodate both the minimum MTU for IPv6, which is 1280, and the OVN-Kubernetes encapsulation overhead, which is 100.
15+
====
16+
+
17+
[NOTE]
18+
====
19+
DHCP must be enabled on the subnets.
20+
====
21+
22+
. Create the API and Ingress VIPs ports.
23+
24+
. 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.
25+
26+
27+
. To configure IPv4 and IPv6 address endpoints for cluster nodes, edit the `install-config.yaml` file. The following is an example of an `install-config.yaml` file.
28+
29+
.Example `install-config.yaml`
30+
31+
[source, yaml]
32+
----
33+
apiVersion: v1
34+
baseDomain: mydomain.test
35+
featureSet: TechPreviewNoUpgrade <1>
36+
compute:
37+
- name: worker
38+
platform:
39+
openstack:
40+
type: m1.xlarge
41+
replicas: 3
42+
controlPlane:
43+
name: master
44+
platform:
45+
openstack:
46+
type: m1.xlarge
47+
replicas: 3
48+
metadata:
49+
name: mycluster
50+
networking:
51+
machineNetwork: <2>
52+
- cidr: "192.168.25.0/24"
53+
- cidr: "fd2e:6f44:5dd8:c956::/64"
54+
clusterNetwork: <2>
55+
- cidr: 10.128.0.0/14
56+
hostPrefix: 23
57+
- cidr: fd01::/48
58+
hostPrefix: 64
59+
serviceNetwork: <2>
60+
- 172.30.0.0/16
61+
- fd02::/112
62+
platform:
63+
openstack:
64+
ingressVIPs: ['192.168.25.79', 'fd2e:6f44:5dd8:c956:f816:3eff:fef1:1bad'] <3>
65+
apiVIPs: ['192.168.25.199', 'fd2e:6f44:5dd8:c956:f816:3eff:fe78:cf36'] <4>
66+
controlPlanePort: <5>
67+
fixedIPs: <6>
68+
- subnet: <7>
69+
name: subnet-v4
70+
id: subnet-v4-id
71+
- subnet: <7>
72+
name: subnet-v6
73+
id: subnet-v6-id
74+
network: <7>
75+
name: dualstack
76+
id: network-id
77+
----
78+
79+
<1> Dual-stack clusters are supported only with the `TechPreviewNoUpgrade` value.
80+
<2> You must specify an IP address range in the `cidr` field for both IPv4 and IPv6 address families.
81+
<3> Specify the virtual IP (VIP) address endpoints for the Ingress VIP services to provide an interface to the cluster.
82+
<4> Specify the virtual IP (VIP) address endpoints for the API VIP services to provide an interface to the cluster.
83+
<5> Specify the dual-stack network details that are used by all the nodes across the cluster.
84+
<6> The CIDR of any subnet specified in this field must match the CIDRs listed on `networks.machineNetwork`.
85+
<7> You can specify a value for either `name` or `id`, or both.

modules/install-osp-dualstack.adoc

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * installing/installing_openstack/installing-openstack-installer-custom.adoc
4+
:_content-type: CONCEPT
5+
[id="install-osp-dualstack_{context}"]
6+
= Optional: Configuring a cluster with dual-stack networking
7+
8+
:FeatureName: Dual-stack configuration for OpenStack
9+
include::snippets/technology-preview.adoc[]
10+
11+
You can create a dual-stack cluster on {rh-openstack}. However, the dual-stack configuration is enabled only if you are using an {rh-openstack} network with IPv4 and IPv6 subnets.
12+
13+
[NOTE]
14+
====
15+
{rh-openstack} does not support the following configurations:
16+
17+
* Conversion of an IPv4 single-stack cluster to a dual-stack cluster network.
18+
19+
* IPv6 as the primary address family for dual-stack cluster network.
20+
====
21+

0 commit comments

Comments
 (0)