In this demonstration we will deploy the backend onto OpenShift on-premises, and decommission the backend application running on the VM.
- Deploy the backend to OpenShift
- Expose the database as a service to the on-premises and Sydney clusters
- Remove the backend from the Gateway
- Expose the backend's Deployment to the RHAI network
-
Expose the database to the network
We need to make the database visible to the application on OpenShift as a local service.
Note: In a real life scenario this would probably be resolved via DNS and an unessary step.
skupper gateway expose db 127.0.0.1 5432 --type podman
RHAI creates a service proxy in the service network. -
Deploy the backend
oc apply -f ./yaml/backend.yaml
-
Open the RHAI Console and show the new service in the Gateway.
-
Remove the backend from the gateway.
Unexpose the Backend:
skupper gateway unexpose backend
Unbind the Backend:
skupper gateway unbind backend
Note: Sometimes these two commands cause the Gateway to die. If that happens just re-run this command:skupper gateway expose db 127.0.0.1 5432 --type podman
-
Expose the backend to the RHAI network:
skupper expose deployment backend --port 8080
Note: You need to wait a few seconds for RHAI to propagate the updated network information. -
Demonstrate the application working
-
Open the RHAI Console and demonstrate the new application topology and review how the wqhole progressive approach was enabled by RHAI.