Skip to content

Commit 5a93889

Browse files
authored
Merge pull request #95113 from dfitzmau/OCPBUGS-34995-13
[enterprise-4.13] OCPBUGS-34995-FIZX: Updated the Expanding the node port range doc for…
2 parents 12b3033 + e7095fc commit 5a93889

File tree

2 files changed

+31
-14
lines changed

2 files changed

+31
-14
lines changed

modules/nw-nodeport-service-range-edit.adoc

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,29 +6,36 @@
66
[id="nw-nodeport-service-range-edit_{context}"]
77
= Expanding the node port range
88

9-
You can expand the node port range for the cluster.
9+
You can expand the node port range for your cluster. However, after you install your {product-title} cluster, you cannot contract the node port range on either side.
10+
11+
[IMPORTANT]
12+
====
13+
Before you expand a node port range, consider that Red{nbsp}Hat has not performed testing outside the default port range of `30000-32768`. For ranges outside the default port range, ensure that you test to verify the expanding node port range does not impact your cluster. If you expanded the range and a port allocation issue occurs, create a new cluster and set the required range for it.
14+
====
1015

1116
.Prerequisites
1217

13-
* Install the OpenShift CLI (`oc`).
14-
* Log in to the cluster with a user with `cluster-admin` privileges.
18+
* Installed the {oc-first}.
19+
* Logged in to the cluster as a user with `cluster-admin` privileges.
20+
* You ensured that your cluster infrastructure allows access to the ports that exist in the extended range. For example, if you expand the node port range to `30000-32900`, your firewall or packet filtering configuration must allow the inclusive port range of `30000-32900`.
1521
1622
.Procedure
1723

18-
. To expand the node port range, enter the following command. Replace `<port>` with the largest port number in the new range.
24+
* Expand the range for the `serviceNodePortRange` parameter in the `network.config.openshift.io` object that your cluster uses to manage traffic for pods by entering the following command in your command-line interface (CLI):
1925
+
2026
[source,terminal]
2127
----
2228
$ oc patch network.config.openshift.io cluster --type=merge -p \
2329
'{
2430
"spec":
25-
{ "serviceNodePortRange": "30000-<port>" }
31+
{ "serviceNodePortRange": "<port_range>" } <1>
2632
}'
2733
----
34+
<1> Where `<port_range>` is your expanded range, such as `30000-32900`.
2835
+
2936
[TIP]
3037
====
31-
You can alternatively apply the following YAML to update the node port range:
38+
You can also apply the following YAML to update the node port range:
3239
3340
[source,yaml]
3441
----
@@ -37,7 +44,8 @@ kind: Network
3744
metadata:
3845
name: cluster
3946
spec:
40-
serviceNodePortRange: "30000-<port>"
47+
serviceNodePortRange: "<port_range>"
48+
# ...
4149
----
4250
====
4351
+
@@ -47,7 +55,9 @@ spec:
4755
network.config.openshift.io/cluster patched
4856
----
4957
50-
. To confirm that the configuration is active, enter the following command. It can take several minutes for the update to apply.
58+
.Verification
59+
60+
* To confirm a successful configuration, enter the following command. The update can take several minutes to apply.
5161
+
5262
[source,terminal]
5363
----
@@ -59,5 +69,5 @@ $ oc get configmaps -n openshift-kube-apiserver config \
5969
.Example output
6070
[source,terminal]
6171
----
62-
"service-node-port-range":["30000-33000"]
72+
"service-node-port-range":["30000-32900"]
6373
----

networking/configuring-node-port-service-range.adoc

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,22 @@ include::_attributes/common-attributes.adoc[]
66

77
toc::[]
88

9-
As a cluster administrator, you can expand the available node port range. If your cluster uses of a large number of node ports, you might need to increase the number of available ports.
9+
During cluster installation, you can configure the node port range to meet the requirements of your cluster. After cluster installation, only a cluster administrator can expand the range as a postinstallation task. If your cluster uses a large number of node ports, consider increasing the available port range according to the requirements of your cluster.
1010

11-
The default port range is `30000-32767`. You can never reduce the port range, even if you first expand it beyond the default range.
11+
[IMPORTANT]
12+
====
13+
Before you expand a node port range, consider that Red{nbsp}Hat has not performed testing outside the default port range of `30000-32768`. For ranges outside the default port range, ensure that you test to verify the expanding node port range does not impact your cluster. If you expanded the range and a port allocation issue occurs, create a new cluster and set the required range for it.
14+
====
1215

13-
[id="configuring-node-port-service-range-prerequisites"]
14-
== Prerequisites
16+
If you do not set a node port range during cluster installation, the default range of `30000-32768` applies to your cluster. In this situation, you can expand the range on either side, but you must preserve `30000-32768` within your new port range.
1517

16-
- Your cluster infrastructure must allow access to the ports that you specify within the expanded range. For example, if you expand the node port range to `30000-32900`, the inclusive port range of `32768-32900` must be allowed by your firewall or packet filtering configuration.
18+
[IMPORTANT]
19+
====
20+
If you expand the node port range and {oc-first} stops working because of a port conflict with the OpenShift API server, you must create a new cluster.
21+
Ensure that the new node port range does not overlap with any ports already in use by host processes or pods that are configured with host networking.
22+
====
1723

24+
// Expanding the node port range
1825
include::modules/nw-nodeport-service-range-edit.adoc[leveloffset=+1]
1926

2027
[role="_additional-resources"]

0 commit comments

Comments
 (0)