The configuration for ExternalIP address blocks is defined by a Network custom resource (CR) named
cluster. The Network CR is part of the
config.openshift.io API group.
During cluster installation, the Cluster Version Operator (CVO) automatically creates a Network CR named
Creating any other CR objects of this type is not supported.
The following YAML describes the ExternalIP configuration:
Network.config.openshift.io CR named
autoAssignCIDRs:  (1)
||Defines the IP address block in CIDR format that is available for automatic assignment of external IP addresses to a service.
Only a single IP address range is allowed.
||Defines restrictions on manual assignment of an IP address to a service.
If no restrictions are defined, specifying the
spec.externalIP field in a
Service object is not allowed.
By default, no restrictions are defined.
The following YAML describes the fields for the
allowedCIDRs:  (1)
rejectedCIDRs:  (2)
||A list of allowed IP address ranges in CIDR format.
||A list of rejected IP address ranges in CIDR format.
Example external IP configurations
Several possible configurations for external IP address pools are displayed in the following examples: