Vasantha
Vasantha

Reputation: 57

Network not found error while changing Nodeport range in openshift origin using OC

I am trying to change Nodeport range in openshift origin with below OC command oc patch network.config.openshift.io cluster --type=merge -p '{ "spec": { "serviceNodePortRange": "30000-" } }'

I got the error like network.config.openshift.io Not Found am I missing any prerequisites. Please help me to resolve this.

Thanks in advance.

Upvotes: 0

Views: 61

Answers (1)

kubenetic
kubenetic

Reputation: 59

I think you missed the upper bound of the port range.

Try to run this:

oc patch network.config.openshift.io cluster \
    --type=merge \
    -p '{ "spec": { "serviceNodePortRange": "30000-33333" } }'

You should check the Configuring the node port service range page.

Upvotes: 0

Related Questions