Configuring ingress cluster traffic for a service external IP
Your cluster is configured with ExternalIPs enabled. For more information, read .
You can attach an ExternalIP to a service. If your cluster is configured to allocate an ExternalIP automatically, you might not need to manually attach an ExternalIP to the service.
Optional: To confirm what IP address ranges are configured for use with ExternalIP, enter the following command:
If is set, OKD automatically assigns an ExternalIP to a new
Service
object if thespec.externalIPs
field is not specified.Attach an ExternalIP to the service.
If you are attaching an ExternalIP to an existing service, enter the following command. Replace
<name>
with the service name. Replace<ip_address>
with a valid ExternalIP address. You can provide multiple IP addresses separated by commas.For example:
$ oc patch svc mysql-55-rhel7 -p '{"spec":{"externalIPs":["192.174.120.10"]}}'
Example output
-
Example output