[RHOCP 4] Ability to specify multiple NodePort ranges in OpenShift
Issue
-
How to specify multiple
NodePort
ranges in Red HatOpenShift Container Platform? -
The existing parameter
serviceNodePortRange
should specify the range ofports
that are opened up externally, but a second parameter:serviceNodePortAllocationRange
would allow specifying the range available for dynamicNodePort
allocation.For instance, the range
7000-31999
is only available for staticNodePort
allocation while32000-32768
would be dynamic, when aNodePort
value is not specified in theservice
definition:oc patch network.config.openshift.io cluster --type=merge -p '{ "spec": { "serviceNodePortRange": "7000-32768" serviceNodePortAllocationRange : “32000-32768” } }'
-
Is it possible to separate
NodePort
allocation range from the available range in OpenShift?
Environment
- Red Hat OpenShift Container Platform (RHOCP)
- 4
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.