Failed to create service from the YAML definition

Solution Verified - Updated -

Issue

  • Failed to create a service with the below error using the YAML manifest:
The Service "xxxxx" is invalid: spec.clusterIPs: Invalid value: []string{"172.31.1.1"}: failed to allocate IP 172.31.1.1: the provided IP (172.31.1.1) is not in the valid range. The range of valid IPs is 172.30.0.0/16
The Service "xxxx" is invalid: spec.clusterIPs[0]: Invalid value: "172.30.1": must be a valid IP address, (e.g. 10.9.8.7 or 2001:db8::ffff)
The Service "httpd2" is invalid: spec.clusterIPs: Invalid value: []string{""}: must be empty when `clusterIP` is not specified, spec.clusterIPs[0]: Invalid value: "": must be a valid IP address, (e.g. 10.9.8.7 or 2001:db8::ffff)

Environment

  • Red Hat OpenShift Container Platform 4.x

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