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: networking/networking_overview/cidr-range-definitions.adoc
+20-11Lines changed: 20 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,17 +13,16 @@ If your cluster uses OVN-Kubernetes, you must specify non-overlapping ranges for
13
13
14
14
[IMPORTANT]
15
15
====
16
-
For {product-title} 4.17 and later versions, clusters use `169.254.0.0/17` for IPv4 and `fd69::/112` for IPv6 as the default masquerade subnet. These ranges should also be avoided by users. For upgraded clusters, there is no change to the default masquerade subnet.
16
+
For {product-title} 4.17 and later versions, clusters use `169.254.0.0/17` for IPv4 and `fd69::/112` for IPv6 as the default masquerade subnet. Users must avoid these ranges. For upgraded clusters, there is no change to the default masquerade subnet.
17
17
====
18
18
19
19
[TIP]
20
20
====
21
-
You can use the link:https://access.redhat.com/labs/ocpnc/[Red Hat OpenShift Network Calculator] to determine your networking needs prior to setting CIDR range during cluster creation.
21
+
You can use the link:https://access.redhat.com/labs/ocpnc/[Red Hat OpenShift Network Calculator] to decide your networking needs before setting CIDR range during cluster creation.
22
22
23
23
You must have a Red Hat account to use the calculator.
24
24
====
25
25
26
-
27
26
The following subnet types and are mandatory for a cluster that uses OVN-Kubernetes:
28
27
29
28
* Join: Uses a join switch to connect gateway routers to distributed routers. A join switch reduces the number of IP addresses for a distributed router. For a cluster that uses the OVN-Kubernetes plugin, an IP address from a dedicated subnet is assigned to any logical port that attaches to the join switch.
@@ -32,7 +31,7 @@ The following subnet types and are mandatory for a cluster that uses OVN-Kuberne
32
31
33
32
[NOTE]
34
33
====
35
-
You can change the join, masquerade, and transit CIDR ranges for your cluster as a post-installation task.
34
+
You can change the join, masquerade, and transit CIDR ranges for your cluster as a postinstallation task.
@@ -51,7 +50,7 @@ OVN-Kubernetes, the default network provider in {product-title} 4.14 and later v
51
50
52
51
[IMPORTANT]
53
52
====
54
-
The previous list includes join, transit, and masquerade IPv4 and IPv6 address subnets. If your cluster uses OVN-Kubernetes, do not include any of these IP address subnet ranges in any other CIDR definitions in your cluster or infrastructure.
53
+
The earlier list includes join, transit, and masquerade IPv4 and IPv6 address subnets. If your cluster uses OVN-Kubernetes, do not include any of these IP address subnet ranges in any other CIDR definitions in your cluster or infrastructure.
@@ -122,16 +121,26 @@ You can expand the range after cluster installation.
122
121
endif::openshift-enterprise[]
123
122
124
123
[id="host-prefix-description"]
125
-
== Host Prefix
126
-
In the Host Prefix field, you must specify the subnet prefix length assigned to pods scheduled to individual machines. The host prefix determines the pod IP address pool for each machine.
124
+
== Host prefix
125
+
126
+
In the `hostPrefix` parameter, you must specify the subnet prefix length assigned to pods scheduled to individual machines. The host prefix determines the pod IP address pool for each machine.
For example, if the host prefix is set to `/23`, each machine is assigned a `/23` subnet from the pod CIDR address range. The default is `/23`, allowing 512 cluster nodes, and 512 pods per node (both of which are beyond our maximum supported).
129
+
For example, if you set the `hostPrefix` parameter to `/23`, each machine is assigned a `/23` subnet from the pod CIDR address range. The default is `/23`, allowing 512 cluster nodes, and 512 pods per node (both of which are beyond our maximum supported).
For example, if the host prefix is set to `/23`, each machine is assigned a `/23` subnet from the pod CIDR address range. The default is `/23`, allowing 510 cluster nodes, and 510 pod IP addresses per node.
134
-
endif::openshift-enterprise[]
135
134
135
+
Consider another example where you set the `clusterNetwork.cidr` parameter to `10.128.0.0/16`, you define the complete address space for the cluster. This assigns a pool of 65536 IP addresses to your cluster. If you then set the `hostPrefix` parameter to `/23`, you define a subnet slice to each node in the cluster, where the `/23` slice becomes a subnet of the `/16` subnet network. This assigns 512 IP addresses to each node, where 2 IP addresses get reserved for networking and broadcasting purposes. The following example calculation uses these IP address figures to determine the maximum number of nodes that you can create for your cluster:
136
+
137
+
[source,text]
138
+
----
139
+
65536 / 512 = 128
140
+
----
141
+
142
+
You can use the link:https://access.redhat.com/labs/ocpnc/[Red Hat OpenShift Network Calculator] to calculate the maximum number of nodes for your cluster.
0 commit comments