Implementation of MegaBank that uses PostgreSQL rather than Db2
-
Create a new project:
oc new-project megabank-pg
-
Give the
default
scc 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 database
Alternatively, deploy it using GitOps tooling such as ArgoCD, FluxCD, or Red Hat Advanced Cluster Management.
-
Expose the
mbweb
service as a route.oc expose service/mbweb
-
Access MegaBank at the
MegaBank
endpoint:ROUTE=$(oc -n megabank-pg get route mbweb -o jsonpath='{.spec.host}') echo "http://${route}/MegaBank"