Chapter 4. Planning considerations
This section describes considerations and strategies for planning your migration from OpenShift Container Platform 3 to 4.
4.1. DNS considerations
The DNS domain of the OpenShift Container Platform 4 target cluster is different from the domain of the OpenShift Container Platform 3 source cluster. By default, applications get FQDNs of the OpenShift Container Platform 4 cluster after migration.
To preserve the source DNS domain of migrated applications, select one of the two options described below.
4.1.1. Isolating the DNS domain of the target cluster from the clients
You can allow the clients' requests sent to the DNS domain of the source cluster to reach the DNS domain of the target cluster without exposing the target cluster to the clients.
- Place an exterior network component, such as an application load balancer or a reverse proxy, between the clients and the OpenShift Container Platform 4 cluster.
Update the original application FQDN (
app1.apps.ocp3.example.com) in the DNS server to return the IP address of the exterior network component.
- Configure the network component to send requests received for the application in the source domain to the load balancer in the target OpenShift Container Platform 4 cluster domain.
Create a wildcard DNS record for the
*.apps.ocp3.example.comdomain that points to the IP address of the load balancer of the source cluster.
- Create a specific DNS record for each application that points to the IP address of the exterior network component in front of the target cluster. A specific DNS record has higher priority than a wildcard record, so no conflict arises when the application FQDN is resolved.
- The exterior network component must terminate all secure TLS connections. If the connections pass through to the OpenShift Container Platform 4 load balancer, the FQDN of the target application is exposed to the client and certificate errors occur.
- The applications must not return links referencing the target cluster domain to the clients. Otherwise, parts of the application might not load or work properly.
4.1.2. Setting up the target cluster to accept the source DNS domain
You can set up the target cluster to accept requests for migrated applications in the DNS domain of the source cluster.
For both non-secure HTTP access and secure HTTPS access, perform the following steps:
Create a route in the application’s project for the hostname that applications used in the source cluster:
$ oc expose svc app1-svc --hostname app1.apps.ocp3.example.com \ -n app1-namespace
With this new route in place, the server accepts any request for that FQDN and sends it to the corresponding application pods. In addition, when you migrate the application, another route is created in the target cluster domain (
app1.apps.ocp4.example.com). Requests can reach the migrated application using both of these hostnames.
Create a specific DNS record for the FQDN in the route hostname parameter that points to the IP address of the default load balancer of the target cluster. Specific DNS records take priority over wildcard records.
The FQDN of the application resolves to the load balancer of the target cluster. The default ingress controller router accept requests for that FQDN because a route for that hostname is exposed.
For secure HTTPS access, perform the following additional step:
- Replace the x509 certificate of the default ingress controller created during the installation process with a custom certificate.
Configure this certificate to include the wildcard DNS domains for both the source and target clusters in the
The new certificate is valid for securing connections made using either of the two DNS domains.
- See Replacing the default ingress certificate for more information.