8.4.10. Enabling access to the environment
At deployment, all OpenShift Container Platform machines are created in a Red Hat OpenStack Platform (RHOSP)-tenant network. Therefore, they are not accessible directly in most RHOSP deployments.
You can configure the OpenShift Container Platform API and applications that run on the cluster to be accessible by using floating IP addresses.
184.108.40.206. Enabling access with floating IP addresses
Create two floating IP (FIP) addresses: one for external access to the OpenShift Container Platform API, the
API FIP, and one for OpenShift Container Platform applications, the
The API FIP is also used in the
Using the Red Hat OpenStack Platform (RHOSP) CLI, create the API FIP:
$ openstack floating ip create --description "API <cluster_name>.<base_domain>" <external network>
Using the Red Hat OpenStack Platform (RHOSP) CLI, create the apps, or Ingress, FIP:
$ openstack floating ip create --description "Ingress <cluster_name>.<base_domain>" <external network>
To reflect the new FIPs, add records that follow these patterns to your DNS server:
api.<cluster_name>.<base_domain>. IN A <API_FIP> *.apps.<cluster_name>.<base_domain>. IN A <apps_FIP>注記
If you do not control the DNS server you can add the record to your
/etc/hostsfile instead. This action makes the API accessible to you only, which is not suitable for production deployment but does allow installation for development and testing.
You can make OpenShift Container Platform resources available outside of the cluster by assigning a floating IP address and updating your firewall configuration.