Skip to content

Commit f115869

Browse files
authored
Merge pull request #90524 from dfitzmau/OSDOCS-13692
OSDOCS-13692: Updated dual-stack to single-stack for IPv6
2 parents 9a02e92 + 7ee6630 commit f115869

6 files changed

+21
-17
lines changed

modules/nw-dual-stack-convert-back-single-stack.adoc

+8-4
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,12 @@
22
[id="nw-dual-stack-convert-back-single-stack_{context}"]
33
= Converting to a single-stack cluster network
44

5-
As a cluster administrator, you can convert your dual-stack cluster network to a single-stack cluster network.
5+
As a cluster administrator, you can convert your dual-stack cluster network to a single-stack cluster network.
6+
7+
[IMPORTANT]
8+
====
9+
If you originally converted your IPv4 single-stack cluster network to a dual-stack cluster, you can convert only back to the IPv4 single-stack cluster and not an IPv6 single-stack cluster network. The same restriction applies for converting back to an IPv6 single-stack cluster network.
10+
====
611

712
.Prerequisites
813

@@ -14,13 +19,12 @@ As a cluster administrator, you can convert your dual-stack cluster network to a
1419
1520
.Procedure
1621

17-
. Edit the `networks.config.openshift.io` custom resource (CR) by running the
18-
following command:
22+
. Edit the `networks.config.openshift.io` custom resource (CR) by running the following command:
1923
+
2024
[source,terminal]
2125
----
2226
$ oc edit networks.config.openshift.io
2327
----
2428

25-
. Remove the IPv6 specific configuration that you have added to the `cidr` and `hostPrefix` fields in the previous procedure.
29+
. Remove the IPv4 or IPv6 configuration that you added to the `cidr` and the `hostPrefix` parameters from completing the "Converting to a dual-stack cluster network " procedure steps.
2630

modules/nw-dual-stack-convert.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ If you already upgraded your cluster to {product-title} 4.16 or later and you ne
5656
path: /spec/serviceNetwork/-
5757
value: fd02::/112 <2>
5858
----
59-
<1> Specify an object with the `cidr` and `hostPrefix` fields. The host prefix must be `64` or greater. The IPv6 Classless Inter-Domain Routing (CIDR) prefix must be large enough to accommodate the specified host prefix.
59+
<1> Specify an object with the `cidr` and `hostPrefix` parameters. The host prefix must be `64` or greater. The IPv6 Classless Inter-Domain Routing (CIDR) prefix must be large enough to accommodate the specified host prefix.
6060
<2> Specify an IPv6 CIDR with a prefix of `112`. Kubernetes uses only the lowest 16 bits. For a prefix of `112`, IP addresses are assigned from `112` to `128` bits.
6161
6262
. Patch the cluster network configuration by entering the following command in your CLI:

modules/nw-ovn-k-day-2-masq-subnet.adoc

+8-8
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44

55
:_mod-docs-content-type: PROCEDURE
66
[id="nw-ovn-k-day-2-masq-subnet_{context}"]
7-
= Configuring the OVN-Kubernetes masquerade subnet as a Day 2 operation
7+
= Configuring the OVN-Kubernetes masquerade subnet as a post-installation operation
88

9-
You can change the masquerade subnet used by OVN-Kubernetes as a Day 2 operation in order to avoid conflicts with any existing subnets that are already in use in your environment.
9+
You can change the masquerade subnet used by OVN-Kubernetes as a post-installation operation to avoid conflicts with any existing subnets that are already in use in your environment.
1010

1111
.Prerequisites
1212

@@ -15,8 +15,8 @@ You can change the masquerade subnet used by OVN-Kubernetes as a Day 2 operation
1515
1616
.Procedure
1717

18-
. Change your cluster's masquerade subnet:
19-
18+
* Change your cluster's masquerade subnet:
19+
+
2020
** For dualstack clusters using IPv6, run the following command:
2121
+
2222
[source,terminal]
@@ -25,11 +25,11 @@ $ oc patch networks.operator.openshift.io cluster --type=merge -p '{"spec":{"def
2525
----
2626
+
2727
where:
28-
28+
+
2929
`ipv4_masquerade_subnet`:: Specifies an IP address to be used as the IPv4 masquerade subnet. This range cannot overlap with any other subnets used by {product-title} or on the host itself. In versions of {product-title} earlier than 4.17, the default value for IPv4 was `169.254.169.0/29`, and clusters that were upgraded to version 4.17 maintain this value. For new clusters starting from version 4.17, the default value is `169.254.0.0/17`.
30-
30+
+
3131
`ipv6_masquerade_subnet`:: Specifies an IP address to be used as the IPv6 masquerade subnet. This range cannot overlap with any other subnets used by {product-title} or on the host itself. The default value for IPv6 is `fd69::/125`.
32-
32+
+
3333
** For clusters using IPv4, run the following command:
3434
+
3535
[source,terminal]
@@ -38,5 +38,5 @@ $ oc patch networks.operator.openshift.io cluster --type=merge -p '{"spec":{"def
3838
----
3939
+
4040
where:
41-
41+
+
4242
`ipv4_masquerade_subnet`::Specifies an IP address to be used as the IPv4 masquerade subnet. This range cannot overlap with any other subnets used by {product-title} or on the host itself. In versions of {product-title} earlier than 4.17, the default value for IPv4 was `169.254.169.0/29`, and clusters that were upgraded to version 4.17 maintain this value. For new clusters starting from version 4.17, the default value is `169.254.0.0/17`.

modules/nw-ovn-kubernetes-change-join-subnet.adoc

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ You can change the join subnet used by OVN-Kubernetes to avoid conflicting with
1616
1717
.Procedure
1818

19-
. To change the OVN-Kubernetes join subnet, enter the following command:
19+
* To change the OVN-Kubernetes join subnet, enter the following command:
2020
+
2121
[source,terminal]
2222
----
@@ -48,7 +48,7 @@ $ oc get network.operator.openshift.io \
4848
-o jsonpath="{.items[0].spec.defaultNetwork}"
4949
----
5050
+
51-
It can take up to 30 minutes for this change to take effect.
51+
The command operation can take up to 30 minutes for this change to take effect.
5252
+
5353
.Example output
5454
----

modules/nw-ovn-kubernetes-change-transit-subnet.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ You can change the transit subnet used by OVN-Kubernetes to avoid conflicting wi
1616
1717
.Procedure
1818

19-
. To change the OVN-Kubernetes transit subnet, enter the following command:
19+
* To change the OVN-Kubernetes transit subnet, enter the following command:
2020
+
2121
[source,terminal]
2222
----

networking/ovn_kubernetes_network_provider/configure-ovn-kubernetes-subnets.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ As a cluster administrator, you can change the IP address ranges that the OVN-Ku
1212
// Configuring the OVN-Kubernetes join subnet
1313
include::modules/nw-ovn-kubernetes-change-join-subnet.adoc[leveloffset=+1]
1414

15-
//day 2 operation for changing masquerade subnet in ovn-k
15+
// Configuring the OVN-Kubernetes masquerade subnet as a post-installation operation
1616
include::modules/nw-ovn-k-day-2-masq-subnet.adoc[leveloffset=+1]
1717

1818
// Configuring the OVN-Kubernetes transit subnet

0 commit comments

Comments
 (0)