Skip to content

Commit 8c6c5bd

Browse files
authored
Merge pull request #100822 from dfitzmau/OCPBUGS-30975
OCPBUGS-30975: Added note about calc max no of nodes with subnet figu…
2 parents 3cc8373 + a597362 commit 8c6c5bd

File tree

1 file changed

+20
-11
lines changed

1 file changed

+20
-11
lines changed

networking/networking_overview/cidr-range-definitions.adoc

Lines changed: 20 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,16 @@ If your cluster uses OVN-Kubernetes, you must specify non-overlapping ranges for
1313

1414
[IMPORTANT]
1515
====
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.
1717
====
1818

1919
[TIP]
2020
====
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.
2222
2323
You must have a Red Hat account to use the calculator.
2424
====
2525

26-
2726
The following subnet types and are mandatory for a cluster that uses OVN-Kubernetes:
2827

2928
* 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
3231
3332
[NOTE]
3433
====
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.
3635
====
3736

3837
ifdef::openshift-rosa,openshift-rosa-hcp,openshift-dedicated[]
@@ -51,7 +50,7 @@ OVN-Kubernetes, the default network provider in {product-title} 4.14 and later v
5150
5251
[IMPORTANT]
5352
====
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.
5554
====
5655

5756
ifndef::openshift-rosa,openshift-rosa-hcp,openshift-dedicated[]
@@ -68,7 +67,7 @@ In the Machine classless inter-domain routing (CIDR) field, you must specify the
6867
6968
[NOTE]
7069
====
71-
Machine CIDR ranges cannot be changed after creating your cluster.
70+
You cannot change Machine CIDR ranges after you created your cluster.
7271
====
7372
7473
ifdef::openshift-rosa,openshift-rosa-hcp,openshift-dedicated[]
@@ -122,16 +121,26 @@ You can expand the range after cluster installation.
122121
endif::openshift-enterprise[]
123122
124123
[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.
127127
128128
ifdef::openshift-rosa,openshift-rosa-hcp,openshift-dedicated[]
129-
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).
130130
endif::openshift-rosa,openshift-rosa-hcp,openshift-dedicated[]
131131
132-
ifdef::openshift-enterprise[]
132+
ifdef::openshift-enterprise,openshift-rosa,openshift-rosa-hcp,openshift-dedicated[]
133133
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[]
135134
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.
143+
endif::openshift-enterprise,openshift-rosa,openshift-rosa-hcp,openshift-dedicated[]
136144
145+
// CIDR ranges for HCP
137146
include::modules/hcp-cidr-ranges.adoc[leveloffset=+1]

0 commit comments

Comments
 (0)