Skip to content

Commit fd60fde

Browse files
authored
Merge pull request #53269 from Amrita42/Agent-189
Agent-189: support for dual stack ipv4/ipv6 and single stack ipv6
2 parents 19ff68c + 3910d4c commit fd60fde

File tree

3 files changed

+107
-2
lines changed

3 files changed

+107
-2
lines changed

installing/installing_with_agent_based_installer/installing-with-agent-based-installer.adoc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ include::modules/installing-ocp-agent.adoc[leveloffset=+1]
1616

1717
[role="_additional-resources"]
1818
.Additional resources
19-
19+
* See xref:../../installing/installing_bare_metal_ipi/ipi-install-installation-workflow.adoc#ipi-install-installation-workflow[Deploying with dual-stack networking].
20+
* See xref:../../installing/installing_bare_metal_ipi/ipi-install-installation-workflow.adoc#ipi-install-installation-workflow[Configuring the install-config yaml file].
2021
* See xref:../../installing/installing_bare_metal/installing-restricted-networks-bare-metal.adoc#installation-three-node-cluster_installing-restricted-networks-bare-metal[Configuring a three-node cluster] to deploy three-node clusters in bare metal environments.
2122
* See xref:../../installing/installing_with_agent_based_installer/preparing-to-install-with-agent-based-installer.adoc#root-device-hints_preparing-to-install-with-agent-based-installer[About root device hints].
2223
* See link:https://nmstate.io/examples.html[NMState state examples].

modules/installation-bare-metal-agent-installer-config-yaml.adoc

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,41 @@ Class E CIDR range is reserved for a future use. To use the Class E CIDR range,
7272
<9> The cluster network provider Container Network Interface (CNI) plug-in to install. The supported values are `OVNKubernetes` (default value) and `OpenShiftSDN` .
7373
<10> The IP address pool to use for service IP addresses. You can enter only one IP address pool. This block must not overlap with existing physical networks. If you need to access the services from an external network, configure load balancers and routers to manage the traffic.
7474
<11> You must set the platform to `none` for a single-node cluster. You can also set the platform to `vSphere` and `baremetal`.
75+
+
76+
[NOTE]
77+
====
78+
If you set the platform to `vSphere` or `baremetal`, you can configure IP address endpoints for cluster nodes in three ways:
79+
80+
* IPv4
81+
* IPv6
82+
* IPv4 and IPv6 in parallel (dual-stack)
83+
84+
.Example of dual-stack networking
85+
[source,yaml]
86+
----
87+
networking:
88+
clusterNetwork:
89+
- cidr: 172.21.0.0/16
90+
hostPrefix: 23
91+
- cidr: fd02::/48
92+
hostPrefix: 64
93+
machineNetwork:
94+
- cidr: 192.168.11.0/16
95+
- cidr: 2001:DB8::/32
96+
serviceNetwork:
97+
- 172.22.0.0/16
98+
- fd03::/112
99+
networkType: OVNKubernetes
100+
platform:
101+
baremetal:
102+
apiVIPs:
103+
- 192.168.11.3
104+
- 2001:DB8::4
105+
ingressVIPs:
106+
- 192.168.11.4
107+
- 2001:DB8::5
108+
----
109+
====
75110
<12> Whether to enable or disable FIPS mode. By default, FIPS mode is not enabled. If FIPS mode is enabled, the {op-system-first} machines that {product-title} runs on bypass the default Kubernetes cryptography suite and use the cryptography modules that are provided with {op-system} instead.
76111
+
77112
[IMPORTANT]

modules/installing-ocp-agent.adoc

Lines changed: 70 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,42 @@ sshKey: |
8383
<2> Enter your pull secret.
8484
<3> Enter your ssh public key.
8585

86+
+
87+
[NOTE]
88+
====
89+
If you set the platform to `vSphere` or `baremetal`, you can configure IP address endpoints for cluster nodes in three ways:
90+
91+
* IPv4
92+
* IPv6
93+
* IPv4 and IPv6 in parallel (dual-stack)
94+
95+
.Example of dual-stack networking
96+
[source,yaml]
97+
----
98+
networking:
99+
clusterNetwork:
100+
- cidr: 172.21.0.0/16
101+
hostPrefix: 23
102+
- cidr: fd02::/48
103+
hostPrefix: 64
104+
machineNetwork:
105+
- cidr: 192.168.11.0/16
106+
- cidr: 2001:DB8::/32
107+
serviceNetwork:
108+
- 172.22.0.0/16
109+
- fd03::/112
110+
networkType: OVNKubernetes
111+
platform:
112+
baremetal:
113+
apiVIPs:
114+
- 192.168.11.3
115+
- 2001:DB8::4
116+
ingressVIPs:
117+
- 192.168.11.4
118+
- 2001:DB8::5
119+
----
120+
====
121+
86122
. Create the `agent-config.yaml` file:
87123
+
88124
[source,yaml]
@@ -133,7 +169,6 @@ the number of hosts defined is 3. When 3 master nodes and 2 worker nodes are def
133169
<4> The `rootDeviceHints` parameter enables provisioning of the Red Hat Enterprise Linux CoreOS (RHCOS) image to a particular device. It examines the devices in the order it discovers them, and compares the discovered values with the hint values. It uses the first discovered device that matches the hint value.
134170
<5> Set this optional parameter to configure the network interface of a host in NMState format.
135171
136-
137172
+
138173
. Create the Agent image by running the following command:
139174
+
@@ -198,3 +233,37 @@ INFO To access the cluster as the system:admin user when using 'oc', run
198233
INFO export KUBECONFIG=/home/core/installer/auth/kubeconfig
199234
INFO Access the OpenShift web-console here: https://console-openshift-console.apps.sno-cluster.test.example.com
200235
----
236+
237+
238+
[NOTE]
239+
====
240+
If you are using the optional method of ZTP manifests, you can configure IP address endpoints for cluster nodes through the `AgentClusterInstall.yaml` file in three ways:
241+
242+
* IPv4
243+
* IPv6
244+
* IPv4 and IPv6 in parallel (dual-stack)
245+
246+
.Example of dual-stack networking
247+
[source,yaml]
248+
----
249+
apiVIP: 192.168.11.3
250+
ingressVIP: 192.168.11.4
251+
clusterDeploymentRef:
252+
name: mycluster
253+
imageSetRef:
254+
name: openshift-4.12
255+
networking:
256+
clusterNetwork:
257+
- cidr: 172.21.0.0/16
258+
hostPrefix: 23
259+
- cidr: fd02::/48
260+
hostPrefix: 64
261+
machineNetwork:
262+
- cidr: 192.168.11.0/16
263+
- cidr: 2001:DB8::/32
264+
serviceNetwork:
265+
- 172.22.0.0/16
266+
- fd03::/112
267+
networkType: OVNKubernetes
268+
----
269+
====

0 commit comments

Comments
 (0)