Skip to content

Commit 6309ff7

Browse files
authored
Merge pull request #85891 from JoeAldinger/OCPBUGS-43762
2 parents 61c22bb + bcf92b5 commit 6309ff7

File tree

4 files changed

+48
-2
lines changed

4 files changed

+48
-2
lines changed
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * networking/ovn_kubernetes_network_provider/configure-ovn-kubernetes-subnets.adoc
4+
5+
:_mod-docs-content-type: PROCEDURE
6+
[id="nw-ovn-k-day-2-masq-subnet_{context}"]
7+
= Configuring the OVN-Kubernetes masquerade subnet as a Day 2 operation
8+
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.
10+
11+
.Prerequisites
12+
13+
* Install the OpenShift CLI (`oc`).
14+
* Log in to the cluster as a user with `cluster-admin` privileges.
15+
16+
.Procedure
17+
18+
. Change your cluster's masquerade subnet:
19+
20+
** For dualstack clusters using IPv6, run the following command:
21+
+
22+
[source,terminal]
23+
----
24+
$ oc patch networks.operator.openshift.io cluster --type=merge -p '{"spec":{"defaultNetwork":{"ovnKubernetesConfig":{"gatewayConfig":{"ipv4":{"internalMasqueradeSubnet": "<ipv4_masquerade_subnet>"},"ipv6":{"internalMasqueradeSubnet": "<ipv6_masquerade_subnet>"}}}}}}'
25+
----
26+
+
27+
where:
28+
29+
`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. The default value for IPv4 is `169.254.169.0/29`.
30+
31+
`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+
33+
** For clusters using IPv4, run the following command:
34+
+
35+
[source,terminal]
36+
----
37+
$ oc patch networks.operator.openshift.io cluster --type=merge -p '{"spec":{"defaultNetwork":{"ovnKubernetesConfig":{"gatewayConfig":{"ipv4":{"internalMasqueradeSubnet": "<ipv4_masquerade_subnet>"}}}}}}'
38+
----
39+
+
40+
where:
41+
42+
`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. The default value for IPv4 is `169.254.169.0/29`.

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,9 @@ toc::[]
99
[role="_abstract"]
1010
As a cluster administrator, you can change the IP address ranges that the OVN-Kubernetes network plugin uses for the join and transit subnets.
1111

12-
include::modules/nw-ovn-kuberentes-change-join-subnet.adoc[leveloffset=+1]
13-
include::modules/nw-ovn-kuberentes-change-transit-subnet.adoc[leveloffset=+1]
12+
include::modules/nw-ovn-kubernetes-change-join-subnet.adoc[leveloffset=+1]
13+
14+
//day 2 operation for changing masquerade subnet in ovn-k
15+
include::modules/nw-ovn-k-day-2-masq-subnet.adoc[leveloffset=+1]
16+
17+
include::modules/nw-ovn-kubernetes-change-transit-subnet.adoc[leveloffset=+1]

0 commit comments

Comments
 (0)