Chapter 4. Migration of information from a deployment on Red Hat OpenShift Container Platform 3
Chapter 4. Migration of information from a deployment on Red Hat OpenShift Container Platform 3 If you previously used a Red Hat Decision Manager deployment on Red Hat OpenShift Container Platform 3, you can migrate the information from that deployment to a new deployment on Red Hat OpenShift Container Platform 4. Before migrating information, you must deploy a new Red Hat Decision Manager infrastructure on Red Hat OpenShift Container Platform 4 using the operator. Include the same elements in the new infrastructure as those present in the old deployment. For example: For any existing authoring deployment, create a new authoring infrastructure, including Business Central and at least one KIE Server. For any existing immutable KIE Server, deploy a new immutable KIE Server with the same artifacts. 4.1. Migrating information in Business Central If you have an existing authoring environment in Red Hat OpenShift Container Platform 3, you can copy the .niogit repository and the Maven repository from Business Central in this environment to Business Central in a new deployment on Red Hat OpenShift Container Platform 4. This action makes all the same projects and artifacts available in the new deployment. Prerequisites You must have a machine that has network access to both the Red Hat OpenShift Container Platform 3 and Red Hat OpenShift Container Platform 4 infrastructures. The oc command-line client from Red Hat OpenShift Container Platform 4 must be installed on the machine. For instructions about installing the command-line client, see CLI tools in Red Hat OpenShift Container Platform documentation. Procedure Ensure that no web clients and no client applications are connected to any elements of the old and new deployment, including Business Central and KIE Servers. Create an empty temporary directory and change into it. Using the oc command, log in to the Red Hat OpenShift Container Platform 3 infrastructure and switch to the project containing the old deployment. To view the pod names in the old deployment, run the following command: Find the Business Central pod. The name of this pod includes rhpamcentr . In a high-availability deployment, you can use any of the Business Central pods. Use the oc command to copy the .niogit repository and the Maven repository from the pod to the local machine, for example: Using the oc command, log in to the Red Hat OpenShift Container Platform 4 infrastructure and switch to the project containing the new deployment. To view the pod names in the new deployment, run the following command: Find the Business Central pod. The name of this pod includes rhpamcentr . In a high-availability deployment, you can use any of the Business Central pods. Use the oc command to copy the .niogit repository and the Maven repository from the local machine to the pod, for example:
get pods cp myapp-rhpamcentr-5-689mw:/opt/kie/data/.niogit .niogit cp myapp-rhpamcentr-5-689mw:/opt/kie/data/maven-repository maven-repository get pods cp .niogit myappnew-rhpamcentr-abd24:/opt/kie/data/.niogit cp maven-repository myappnew-rhpamcentr-abd24:/opt/kie/data/maven-repository