Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 20 additions & 9 deletions networking/cidr-range-definitions.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ OVN-Kubernetes, the default network provider in {product-title} 4.14 and later v

[IMPORTANT]
====
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.
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.
====

ifndef::openshift-rosa,openshift-dedicated[]
Expand All @@ -54,7 +54,7 @@ In the Machine classless inter-domain routing (CIDR) field, you must specify the

[NOTE]
====
Machine CIDR ranges cannot be changed after creating your cluster.
You cannot change Machine CIDR ranges after you created your cluster.
====

ifdef::openshift-rosa,openshift-dedicated[]
Expand Down Expand Up @@ -106,13 +106,24 @@ You can expand the range after cluster installation.
endif::openshift-enterprise[]

[id="host-prefix-description"]
== Host Prefix
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.
== Host prefix

ifdef::openshift-rosa,openshift-dedicated[]
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).
endif::openshift-rosa,openshift-dedicated[]
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.

ifdef::openshift-enterprise[]
ifdef::openshift-rosa,openshift-rosa-hcp,openshift-dedicated[]
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).
endif::openshift-rosa,openshift-rosa-hcp,openshift-dedicated[]

ifdef::openshift-enterprise,openshift-rosa,openshift-dedicated[]
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.
endif::openshift-enterprise[]

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:

[source,text]
----
65536 / 512 = 128
----

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.
endif::openshift-enterprise,openshift-rosa,openshift-dedicated[]