[RHOCP 4] Ability to specify multiple NodePort ranges in OpenShift

Solution Verified - Updated -

Issue

  • How to specify multiple NodePort ranges in Red HatOpenShift Container Platform?

  • The existing parameter serviceNodePortRange should specify the range of ports that are opened up externally, but a second parameter: serviceNodePortAllocationRange would allow specifying the range available for dynamic NodePort allocation.

    For instance, the range 7000-31999 is only available for static NodePort allocation while 32000-32768 would be dynamic, when a NodePort value is not specified in the service 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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content