You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/nw-dual-stack-convert.adoc
+84-18Lines changed: 84 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -2,11 +2,13 @@
2
2
[id="nw-dual-stack-convert_{context}"]
3
3
= Converting to a dual-stack cluster network
4
4
5
-
As a cluster administrator, you can convert your single-stack cluster network to a dual-stack cluster network.
5
+
As a cluster administrator, you can convert your single-stack cluster network to a dual-stack cluster network. After converting to a dual-stack networking, new and existing pods have dual-stack networking enabled.
6
+
7
+
Converting a single-stack cluster network to a dual-stack cluster network consists of creating patches and applying them to the cluster's network and infrastructure.
6
8
7
9
[NOTE]
8
10
====
9
-
After converting to dual-stack networking only newly created pods are assigned IPv6 addresses. Any pods created before the conversion must be recreated to receive an IPv6 address.
11
+
Each patch operation that changes `clusterNetwork`, `serviceNetwork`, `apiServerInternalIPs`, and `ingressIP` objects triggers a restart of the cluster. Changing the `MachineNetworks` object does not cause a reboot of the cluster.
10
12
====
11
13
12
14
.Prerequisites
@@ -19,9 +21,8 @@ After converting to dual-stack networking only newly created pods are assigned I
19
21
20
22
.Procedure
21
23
22
-
. To specify IPv6 address blocks for the cluster and service networks, create a file containing the following YAML:
24
+
. To specify IPv6 address blocks for the cluster and service networks, create a YAML configuration patch file that has a similar configuration to the following example:
23
25
+
24
-
--
25
26
[source,yaml]
26
27
----
27
28
- op: add
@@ -33,45 +34,71 @@ After converting to dual-stack networking only newly created pods are assigned I
33
34
path: /spec/serviceNetwork/-
34
35
value: fd02::/112 <2>
35
36
----
36
-
<1> Specify an object with the `cidr` and `hostPrefix` fields. The host prefix must be `64` or greater. The IPv6 CIDR prefix must be large enough to accommodate the specified host prefix.
37
-
37
+
<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.
38
38
<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.
39
-
--
40
39
41
-
. To patch the cluster network configuration, enter the following command:
40
+
. Patch the cluster network configuration by entering the following command in your CLI:
<1> Where `file` specifies the name of your created YAML file.
48
+
+
49
+
.Example output
50
+
[source,text]
51
+
----
52
+
network.config.openshift.io/cluster patched
53
+
----
54
+
55
+
. To specify IPv6 Virtual IPs (VIPs) for API and Ingress services for your cluster, create a YAML configuration patch file that has a similar configuration to the following example:
<1> Ensure that you specify an address block for the `machineNetwork` network where your machines operate. You must select both API and Ingress IP addresses for the machine network.
70
+
<2> Ensure that you specify each file path according to your platform. The example demonstrates a file path on a bare-metal platform.
51
71
52
-
`file`:: Specifies the name of the file you created in the previous step.
53
-
--
72
+
. Patch the cluster's infrastructure by entering the following command in your CLI:
73
+
+
74
+
[source,terminal,subs="+quotes"]
75
+
----
76
+
$ oc patch infrastructure cluster \// <1>
77
+
--type='json'--patch-file <file>.yaml
78
+
----
79
+
<1> Where `file` specifies the name of your created YAML file.
54
80
+
55
81
.Example output
56
82
[source,text]
57
83
----
58
-
network.config.openshift.io/cluster patched
84
+
infrastructure/cluster patched
59
85
----
60
86
61
87
.Verification
62
88
63
-
Complete the following step to verify that the cluster network recognizes the IPv6 address blocks that you specified in the previous procedure.
64
-
65
-
. Display the network configuration:
89
+
. Show the cluster network configuration by entering the following command in your CLI:
66
90
+
67
91
[source,terminal]
68
92
----
69
93
$ oc describe network
70
94
----
95
+
96
+
. Verify the successful installation of the patch on the network configuration by checking that the cluster network configuration recognizes the IPv6 address blocks that you specified in the YAML file.
71
97
+
72
98
.Example output
73
99
[source,text]
74
100
----
101
+
# ...
75
102
Status:
76
103
Cluster Network:
77
104
Cidr: 10.128.0.0/14
@@ -83,4 +110,43 @@ Status:
83
110
Service Network:
84
111
172.30.0.0/16
85
112
fd02::/112
113
+
# ...
114
+
----
115
+
116
+
. Show the cluster infrastructure configuration by entering the following command in your CLI:
117
+
+
118
+
[source,terminal]
119
+
----
120
+
$ oc describe network
121
+
----
122
+
123
+
. Verify the successful installation of the patch on the cluster infrastructure by checking that the infrastructure recognizes the IPv6 address blocks that you specified in the YAML file.
As a cluster administrator, you can convert your IPv4 single-stack cluster to a dual-network cluster network that supports IPv4 and IPv6 address families.
10
-
After converting to dual-stack, all newly created pods are dual-stack enabled.
9
+
As a cluster administrator, you can convert your IPv4 single-stack cluster to a dual-network cluster network that supports IPv4 and IPv6 address families. After converting to dual-stack networking, new and existing pods have dual-stack networking enabled.
11
10
12
-
[NOTE]
11
+
Clusters provisioned on bare metal, {ibm-power-name}, {ibm-z-name} infrastructure, {sno}, and {vmw-full} support dual-stack networking.
12
+
13
+
[IMPORTANT]
13
14
====
14
-
* While using dual-stack networking, you cannot use IPv4-mapped IPv6 addresses, such as `::FFFF:198.51.100.1`, where IPv6 is required.
15
-
* A dual-stack network is supported on clusters provisioned on bare metal, {ibm-power-name}, {ibm-z-name} infrastructure, {sno}, and VMware vSphere.
15
+
When using dual-stack networking where IPv6 is required, you cannot use IPv4-mapped IPv6 addresses, such as `::FFFF:198.51.100.1`.
0 commit comments