Now delete the project tomcatX, where X is your user number.
oc delete project tomcatX
Create a new project called userX-dev:
oc new-project userX-dev
While inside the project userX-dev, browse the catalog and search for postgresql.
This will create the PostgreSQL database container and run it. It will also request for a persistent volume where it can persist the data across restarts.
To get information on the persistent volume that was created, enter the command below in your console.
[root@bcorpus2 exercise1]# oc get pvc
NAME STATUS VOLUME CAPACITY ACCESSMODES STORAGECLASS AGE
postgresql Bound pv0073 100Gi RWO,ROX,RWX 58s
Next Exercise: Running your own Git Service
Written on December 20th, 2017 by Bobby Corpus