Implementation of MegaBank that uses PostgreSQL rather than Db2
-
Create a new project:
oc new-project megabank-pg -
Give the
defaultscc elevated privileges:oc -n megabank-pg adm policy add-scc-to-user anyuid -z default -
Deploy the application.
oc apply -f backend -f frontend -f databaseAlternatively, deploy it using GitOps tooling such as ArgoCD, FluxCD, or Red Hat Advanced Cluster Management.
-
Expose the
mbwebservice as a route.oc expose service/mbweb -
Access MegaBank at the
MegaBankendpoint:ROUTE=$(oc -n megabank-pg get route mbweb -o jsonpath='{.spec.host}') echo "http://${ROUTE}/MegaBank"